summaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-22 13:28:07 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-22 13:28:07 +0100
commit461a7fcfce3cd6414f990037e6468af3b5ccf119 (patch)
tree6498b1cf892206698e8b6951af503f6a953bf5ac /src/message.c
parent528ccfbaa1cc805f430a750c551e5a9fd7eb54fe (diff)
patch 8.1.0619: :echomsg and :echoerr do not handle List and Dictv8.1.0619
Problem: :echomsg and :echoerr do not handle List and Dict like :echo does. (Daniel Hahler) Solution: Be more tolerant about the expression result type.
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index f191c78a27..1c9fbe513c 100644
--- a/src/message.c
+++ b/src/message.c
@@ -553,7 +553,10 @@ ignore_error_for_testing(char_u *error)
if (ignore_error_list.ga_itemsize == 0)
ga_init2(&ignore_error_list, sizeof(char_u *), 1);
- ga_add_string(&ignore_error_list, error);
+ if (STRCMP("RESET", error) == 0)
+ ga_clear_strings(&ignore_error_list);
+ else
+ ga_add_string(&ignore_error_list, error);
}
static int