0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.3202: Vim9: tests are only executed for legacy script

Problem:    Vim9: tests are only executed for legacy script.
Solution:   Run more tests also for Vim9 script.  Fix uncovered problems.
This commit is contained in:
Bram Moolenaar
2021-07-22 18:48:53 +02:00
parent 2b59df00d8
commit 5dd839ce20
4 changed files with 127 additions and 39 deletions

View File

@@ -2711,6 +2711,13 @@ exec_instructions(ectx_T *ectx)
else
n2 = list_idx_of_item(l, li2);
}
if (status != FAIL
&& tv_idx2->v_type != VAR_SPECIAL
&& n2 < n1)
{
semsg(_(e_listidx), n2);
status = FAIL;
}
if (status != FAIL
&& list_unlet_range(l, li, NULL, n1,
tv_idx2->v_type != VAR_SPECIAL, n2)