0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1467: Vim9: :echomsg doesn't like a dict argument

Problem:    Vim9: :echomsg doesn't like a dict argument.
Solution:   Convert arguments like in legacy script. (closes #6717)
This commit is contained in:
Bram Moolenaar
2020-08-16 18:29:35 +02:00
parent cc673e746a
commit e5abf7af08
4 changed files with 22 additions and 10 deletions

View File

@@ -2422,9 +2422,6 @@ compile_list(char_u **arg, cctx_T *cctx)
if (*p == ']')
{
++p;
// Allow for following comment, after at least one space.
if (VIM_ISWHITE(*p) && *skipwhite(p) == '#')
p += STRLEN(p);
break;
}
if (compile_expr0(&p, cctx) == FAIL)
@@ -6206,6 +6203,7 @@ compile_throw(char_u *arg, cctx_T *cctx UNUSED)
compile_mult_expr(char_u *arg, int cmdidx, cctx_T *cctx)
{
char_u *p = arg;
char_u *prev;
int count = 0;
for (;;)
@@ -6213,8 +6211,9 @@ compile_mult_expr(char_u *arg, int cmdidx, cctx_T *cctx)
if (compile_expr0(&p, cctx) == FAIL)
return NULL;
++count;
prev = p;
p = skipwhite(p);
if (ends_excmd(*p))
if (ends_excmd2(prev, p))
break;
}