forked from aniani/vim
patch 8.2.4296: Vim9: not all code covered by tests
Problem: Vim9: not all code covered by tests. Solution: Add a few more tests for corner cases. Fix hang when single quote is missing.
This commit is contained in:
@@ -2824,8 +2824,10 @@ 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)
|
||||
{
|
||||
int prev_did_emsg = did_emsg;
|
||||
|
||||
skip_expr_cctx(arg, cctx);
|
||||
return OK;
|
||||
return did_emsg == prev_did_emsg ? OK : FAIL;
|
||||
}
|
||||
|
||||
// Evaluate the first expression.
|
||||
|
Reference in New Issue
Block a user