1
0
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:
Bram Moolenaar
2022-02-04 21:17:58 +00:00
parent 3e79c97c18
commit 83d0cec956
5 changed files with 13 additions and 2 deletions

View File

@@ -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.