patch 8.2.4896: expression in command block does not look after NL
Problem: Expression in command block does not look after NL when command is
typed.
Solution: Skip over NL also when not in a script. (closes #10358)
diff --git a/src/eval.c b/src/eval.c
index 18e196f..317446c 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2175,7 +2175,8 @@
*getnext = FALSE;
if (in_vim9script()
&& evalarg != NULL
- && (evalarg->eval_cookie != NULL || evalarg->eval_cctx != NULL)
+ && (evalarg->eval_cookie != NULL || evalarg->eval_cctx != NULL
+ || *p == NL)
&& (*p == NUL || *p == NL
|| (vim9_comment_start(p) && VIM_ISWHITE(p[-1]))))
{