mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4662: no error for using out of range list index
Problem: No error for using out of range list index. Solution: Check list index at script level like in compiled function. (closes #10051)
This commit is contained in:
@@ -1988,7 +1988,7 @@ execute_storerange(isn_T *iptr, ectx_T *ectx)
|
||||
else
|
||||
n2 = (long)tv_get_number_chk(tv_idx2, NULL);
|
||||
|
||||
li1 = check_range_index_one(tv_dest->vval.v_list, &n1, FALSE);
|
||||
li1 = check_range_index_one(tv_dest->vval.v_list, &n1, TRUE, FALSE);
|
||||
if (li1 == NULL)
|
||||
status = FAIL;
|
||||
else
|
||||
|
Reference in New Issue
Block a user