0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4395: some code lines not covered by tests

Problem:    Some code lines not covered by tests.
Solution:   Add a few more test cases.  Fix getting more than one error for
            invalid assignment.
This commit is contained in:
Bram Moolenaar
2022-02-15 21:17:56 +00:00
parent 9fdde7992a
commit 8b716f5f22
7 changed files with 38 additions and 5 deletions

View File

@@ -2420,7 +2420,7 @@ may_compile_assignment(exarg_T *eap, char_u **line, cctx_T *cctx)
if (*eap->cmd == '[')
{
// [var, var] = expr
// might be "[var, var] = expr"
*line = compile_assignment(eap->cmd, eap, CMD_SIZE, cctx);
if (*line == NULL)
return FAIL;
@@ -2958,7 +2958,10 @@ compile_def_function(
case CMD_decrement:
line = compile_assignment(p, &ea, ea.cmdidx, &cctx);
if (line == p)
{
emsg(_(e_invalid_assignment));
line = NULL;
}
break;
case CMD_unlet: