Patch 8.2.3946
Problem: When an internal error makes Vim exit the error is not seen.
Solution: Add the error to the test output.
Files: src/message.c, src/testdir/runtest.vim
*** ../vim-8.2.3945/src/message.c 2021-12-27 17:21:38.012449123 +0000
--- src/message.c 2021-12-30 13:04:52.565622174 +0000
***************
*** 824,833 ****
iemsg(char *s)
{
if (!emsg_not_now())
emsg_core((char_u *)s);
#ifdef ABORT_ON_INTERNAL_ERROR
! abort();
#endif
}
#ifndef PROTO // manual proto with __attribute__
--- 824,836 ----
iemsg(char *s)
{
if (!emsg_not_now())
+ {
emsg_core((char_u *)s);
#ifdef ABORT_ON_INTERNAL_ERROR
! set_vim_var_string(VV_ERRMSG, (char_u *)s, -1);
! abort();
#endif
+ }
}
#ifndef PROTO // manual proto with __attribute__
*** ../vim-8.2.3945/src/testdir/runtest.vim 2021-12-11 12:26:55.924402407
+0000
--- src/testdir/runtest.vim 2021-12-30 13:07:57.141360049 +0000
***************
*** 304,309 ****
--- 304,310 ----
func EarlyExit(test)
" It's OK for the test we use to test the quit detection.
if a:test != 'Test_zz_quit_detected()'
+ call add(v:errors, v:errmsg)
call add(v:errors, 'Test caused Vim to exit: ' . a:test)
endif
*** ../vim-8.2.3945/src/version.c 2021-12-30 13:28:56.812073798 +0000
--- src/version.c 2021-12-30 13:31:25.771892890 +0000
***************
*** 751,752 ****
--- 751,754 ----
{ /* Add new patch number below this line */
+ /**/
+ 3946,
/**/
--
hundred-and-one symptoms of being an internet addict:
152. You find yourself falling for someone you've never seen or hardly
know, but, boy can he/she TYPE!!!!!!
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20211230133241.3379F1C0A5B%40moolenaar.net.