1
0
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:
Bram Moolenaar
2021-01-09 13:20:37 +01:00
parent 9e0f883f89
commit e7525c5520
7 changed files with 121 additions and 101 deletions

View File

@@ -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;