patch 8.1.0619: :echomsg and :echoerr do not handle List and Dict
Problem: :echomsg and :echoerr do not handle List and Dict like :echo does.
(Daniel Hahler)
Solution: Be more tolerant about the expression result type.
diff --git a/src/message.c b/src/message.c
index f191c78..1c9fbe5 100644
--- a/src/message.c
+++ b/src/message.c
@@ -553,7 +553,10 @@
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