From 32b0470b03b3892a4ed6c4bfec0d4a5527d996b1 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 9 May 2018 03:02:12 +0200 Subject: API: better way to capture abort-causing non-exception errors This condition is not perfectly reliable: (did_emsg && force_abort && !current_exception) The more proper way to check for abort-causing non-exception errors is to set up `msg_list` using the "pattern" given by do_cmdline(). --- src/nvim/message.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/nvim/message.c') diff --git a/src/nvim/message.c b/src/nvim/message.c index bcfff90d7d..7ca82c2878 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -67,7 +67,6 @@ static char_u *confirm_msg_tail; /* tail of confirm_msg */ MessageHistoryEntry *first_msg_hist = NULL; MessageHistoryEntry *last_msg_hist = NULL; -char *msg_first_ignored_err = NULL; static int msg_hist_len = 0; static FILE *verbose_fd = NULL; @@ -505,9 +504,6 @@ int emsg(const char_u *s_) if (cause_errthrow((char_u *)s, severe, &ignore) == true) { if (!ignore) { did_emsg = true; - if (msg_first_ignored_err == NULL) { - msg_first_ignored_err = xstrdup(s); - } } return true; } -- cgit