1
0
forked from aniani/vim

patch 8.2.0334: abort called when using test_void()

Problem:    Abort called when using test_void(). (Dominique Pelle)
Solution:   Only give an error, don't abort.
This commit is contained in:
Bram Moolenaar
2020-02-29 17:38:12 +01:00
parent 57c339569e
commit dd58923c6b
7 changed files with 30 additions and 13 deletions

View File

@@ -838,6 +838,16 @@ internal_error(char *where)
siemsg(_(e_intern2), where);
}
/*
* Like internal_error() but do not call abort(), to avoid tests using
* test_unknown() and test_void() causing Vim to exit.
*/
void
internal_error_no_abort(char *where)
{
semsg(_(e_intern2), where);
}
// emsg3() and emsgn() are in misc2.c to avoid warnings for the prototypes.
void