To: vim_dev@googlegroups.com Subject: Patch 8.2.3946 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///