forked from aniani/vim
patch 8.2.2318: Vim9: string and list index work differently
Problem: Vim9: string and list index work differently. Solution: Make string index work like list index. (closes #7643)
This commit is contained in:
@@ -924,7 +924,7 @@ list_slice_or_index(
|
||||
if (!range)
|
||||
{
|
||||
if (verbose)
|
||||
semsg(_(e_listidx), n1);
|
||||
semsg(_(e_listidx), n1_arg);
|
||||
return FAIL;
|
||||
}
|
||||
n1 = n1 < 0 ? 0 : len;
|
||||
|
||||
Reference in New Issue
Block a user