mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.3946: when an internal error makes Vim exit the error is not seen
Problem: When an internal error makes Vim exit the error is not seen. Solution: Add the error to the test output.
This commit is contained in:
@@ -824,10 +824,13 @@ semsg(const char *s, ...)
|
|||||||
iemsg(char *s)
|
iemsg(char *s)
|
||||||
{
|
{
|
||||||
if (!emsg_not_now())
|
if (!emsg_not_now())
|
||||||
|
{
|
||||||
emsg_core((char_u *)s);
|
emsg_core((char_u *)s);
|
||||||
#ifdef ABORT_ON_INTERNAL_ERROR
|
#ifdef ABORT_ON_INTERNAL_ERROR
|
||||||
abort();
|
set_vim_var_string(VV_ERRMSG, (char_u *)s, -1);
|
||||||
|
abort();
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef PROTO // manual proto with __attribute__
|
#ifndef PROTO // manual proto with __attribute__
|
||||||
|
@@ -304,6 +304,7 @@ endfunc
|
|||||||
func EarlyExit(test)
|
func EarlyExit(test)
|
||||||
" It's OK for the test we use to test the quit detection.
|
" It's OK for the test we use to test the quit detection.
|
||||||
if a:test != 'Test_zz_quit_detected()'
|
if a:test != 'Test_zz_quit_detected()'
|
||||||
|
call add(v:errors, v:errmsg)
|
||||||
call add(v:errors, 'Test caused Vim to exit: ' . a:test)
|
call add(v:errors, 'Test caused Vim to exit: ' . a:test)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@@ -749,6 +749,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3946,
|
||||||
/**/
|
/**/
|
||||||
3945,
|
3945,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user