mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3312: Vim9: after "if false" line breaks in expression not skipped
Problem: Vim9: after "if false" line breaks in expression not skipped. Solution: Do parse the expression. (closes #8723)
This commit is contained in:
@@ -9730,14 +9730,12 @@ compile_def_function(
|
||||
|
||||
if (p == ea.cmd && ea.cmdidx != CMD_SIZE)
|
||||
{
|
||||
if (cctx.ctx_skip == SKIP_YES)
|
||||
if (cctx.ctx_skip == SKIP_YES && ea.cmdidx != CMD_eval)
|
||||
{
|
||||
line += STRLEN(line);
|
||||
goto nextline;
|
||||
}
|
||||
|
||||
// Expression or function call.
|
||||
if (ea.cmdidx != CMD_eval)
|
||||
else if (ea.cmdidx != CMD_eval)
|
||||
{
|
||||
// CMD_var cannot happen, compile_assignment() above would be
|
||||
// used. Most likely an assignment to a non-existing variable.
|
||||
|
Reference in New Issue
Block a user