patch 8.2.1679: Vim9: ":*" is not recognized as a range
Problem: Vim9: ":*" is not recognized as a range.
Solution: Move recognizing "*" into skip_range(). (closes #6838)
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 4ef3fdc..8a46b2f 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -4276,7 +4276,7 @@
}
if (need_type(stack_type, cctx->ctx_ufunc->uf_ret_type, -1,
cctx, FALSE) == FAIL)
- return NULL;
+ return NULL;
}
}
else
@@ -6830,7 +6830,7 @@
cmd = ea.cmd;
if (*cmd != '\'' || starts_with_colon)
{
- ea.cmd = skip_range(ea.cmd, NULL);
+ ea.cmd = skip_range(ea.cmd, TRUE, NULL);
if (ea.cmd > cmd)
{
if (!starts_with_colon)