forked from aniani/vim
patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Problem: Vim9: cannot index or slice a variable with type "any". Solution: Add runtime index and slice.
This commit is contained in:
@@ -914,7 +914,7 @@ list_slice_or_index(
|
||||
semsg(_(e_listidx), n1);
|
||||
return FAIL;
|
||||
}
|
||||
n1 = len;
|
||||
n1 = n1 < 0 ? 0 : len;
|
||||
}
|
||||
if (range)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user