0
0
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:
Bram Moolenaar
2021-12-30 13:32:09 +00:00
parent 13789bf103
commit 1c67f3a977
3 changed files with 7 additions and 1 deletions

View File

@@ -824,10 +824,13 @@ semsg(const char *s, ...)
iemsg(char *s)
{
if (!emsg_not_now())
{
emsg_core((char_u *)s);
#ifdef ABORT_ON_INTERNAL_ERROR
abort();
set_vim_var_string(VV_ERRMSG, (char_u *)s, -1);
abort();
#endif
}
}
#ifndef PROTO // manual proto with __attribute__