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)
*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]))))
{
END
call v9.CheckScriptSuccess(lines)
call assert_equal('true', g:result)
+ unlet g:result
+
+ call feedkeys(":EchoCond\<CR>", 'xt')
+ call assert_equal('true', g:result)
+
delcommand EchoCond
unlet g:result
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4896,
/**/
4895,
/**/