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)
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 579ccbc..3e0ad9a 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2422,9 +2422,6 @@
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_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 @@
if (compile_expr0(&p, cctx) == FAIL)
return NULL;
++count;
+ prev = p;
p = skipwhite(p);
- if (ends_excmd(*p))
+ if (ends_excmd2(prev, p))
break;
}