comparison src/message.c @ 15219:dada0b389d4f v8.1.0619

patch 8.1.0619: :echomsg and :echoerr do not handle List and Dict commit https://github.com/vim/vim/commit/461a7fcfce3cd6414f990037e6468af3b5ccf119 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 22 13:28:07 2018 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Dec 2018 13:30:08 +0100
parents de63593896b3
children 55ccc2d353bd
comparison
equal deleted inserted replaced
15218:d8a6097d1f52 15219:dada0b389d4f
551 ignore_error_for_testing(char_u *error) 551 ignore_error_for_testing(char_u *error)
552 { 552 {
553 if (ignore_error_list.ga_itemsize == 0) 553 if (ignore_error_list.ga_itemsize == 0)
554 ga_init2(&ignore_error_list, sizeof(char_u *), 1); 554 ga_init2(&ignore_error_list, sizeof(char_u *), 1);
555 555
556 ga_add_string(&ignore_error_list, error); 556 if (STRCMP("RESET", error) == 0)
557 ga_clear_strings(&ignore_error_list);
558 else
559 ga_add_string(&ignore_error_list, error);
557 } 560 }
558 561
559 static int 562 static int
560 ignore_error(char_u *msg) 563 ignore_error(char_u *msg)
561 { 564 {