mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1324: Vim9: line break after "=" does not work
Problem: Vim9: line break after "=" does not work. Solution: Also allow for NUL after "=". (closes #6549)
This commit is contained in:
@@ -801,13 +801,13 @@ ex_let(exarg_T *eap)
|
||||
else
|
||||
++expr;
|
||||
|
||||
if (vim9script && (!VIM_ISWHITE(*argend) || !VIM_ISWHITE(*expr)))
|
||||
if (vim9script && (!VIM_ISWHITE(*argend)
|
||||
|| !IS_WHITE_OR_NUL(*expr)))
|
||||
{
|
||||
vim_strncpy(op, expr - len, len);
|
||||
semsg(_(e_white_both), op);
|
||||
i = FAIL;
|
||||
}
|
||||
expr = skipwhite(expr);
|
||||
|
||||
if (eap->skip)
|
||||
++emsg_skip;
|
||||
@@ -818,6 +818,7 @@ ex_let(exarg_T *eap)
|
||||
evalarg.eval_getline = eap->getline;
|
||||
evalarg.eval_cookie = eap->cookie;
|
||||
}
|
||||
expr = skipwhite_and_linebreak(expr, &evalarg);
|
||||
i = eval0(expr, &rettv, eap, &evalarg);
|
||||
if (eap->skip)
|
||||
--emsg_skip;
|
||||
|
Reference in New Issue
Block a user