summaryrefslogtreecommitdiff
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-29 17:38:12 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-29 17:38:12 +0100
commitdd58923c6bcb026de7134d9874e69e0a2b01682d (patch)
tree96e5bb7145241ace4d7f217640cecb039d2b3d5d /src/message.c
parent57c339569e96725e24e79944bf99f70c50afb5b1 (diff)
downloadvim-git-dd58923c6bcb026de7134d9874e69e0a2b01682d.tar.gz
patch 8.2.0334: abort called when using test_void()v8.2.0334
Problem: Abort called when using test_void(). (Dominique Pelle) Solution: Only give an error, don't abort.
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c
index c2855fb34..cb1a773ce 100644
--- a/src/message.c
+++ b/src/message.c
@@ -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