mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.1891: Vim9: skipping over expression doesn't handle line breaks
Problem: Vim9: skipping over expression doesn't handle line breaks. Solution: Pass evalarg to skip_expr(). (closes #7157)
This commit is contained in:
@@ -4385,7 +4385,11 @@ compile_expr1(char_u **arg, cctx_T *cctx, ppconst_T *ppconst)
|
||||
// Ignore all kinds of errors when not producing code.
|
||||
if (cctx->ctx_skip == SKIP_YES)
|
||||
{
|
||||
skip_expr(arg);
|
||||
evalarg_T evalarg;
|
||||
|
||||
CLEAR_FIELD(evalarg);
|
||||
evalarg.eval_cctx = cctx;
|
||||
skip_expr(arg, &evalarg);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user