0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4949: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add a few more test cases.  Fix double error message.
This commit is contained in:
Bram Moolenaar
2022-05-13 16:23:37 +01:00
parent d881d15984
commit 31ad32a325
3 changed files with 37 additions and 1 deletions

View File

@@ -1899,6 +1899,7 @@ compile_subscript(
{
int fail;
int save_len = cctx->ctx_ufunc->uf_lines.ga_len;
int prev_did_emsg = did_emsg;
*paren = NUL;
@@ -1916,7 +1917,8 @@ compile_subscript(
if (fail)
{
semsg(_(e_invalid_expression_str), pstart);
if (did_emsg == prev_did_emsg)
semsg(_(e_invalid_expression_str), pstart);
return FAIL;
}
}