diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-04 21:17:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-04 21:17:58 +0000 |
commit | 83d0cec95697c244c8096c78aa806469302a8e19 (patch) | |
tree | a61468f75acdcedd8603b71051ab9ff21022fcea /src/vim9expr.c | |
parent | 3e79c97c18c50f97797ab13ed81c4011eba9aba0 (diff) | |
download | vim-git-83d0cec95697c244c8096c78aa806469302a8e19.tar.gz |
patch 8.2.4296: Vim9: not all code covered by testsv8.2.4296
Problem: Vim9: not all code covered by tests.
Solution: Add a few more tests for corner cases. Fix hang when single quote
is missing.
Diffstat (limited to 'src/vim9expr.c')
-rw-r--r-- | src/vim9expr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vim9expr.c b/src/vim9expr.c index d36df84e0..146e136bd 100644 --- a/src/vim9expr.c +++ b/src/vim9expr.c @@ -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. |