commit | e7525c552060dd04aacdbca6bb5fe6460cf4da60 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jan 09 13:20:37 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jan 09 13:20:37 2021 +0100 |
tree | 9a5e22a5554fe9b8d760a79dc314408e2f4262e3 | |
parent | 9e0f883f89c915e08ef5fd9e6bf382af57fa9eb2 [diff] [blame] |
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)
diff --git a/src/list.c b/src/list.c index 56ee5a5..4531e58 100644 --- a/src/list.c +++ b/src/list.c
@@ -924,7 +924,7 @@ if (!range) { if (verbose) - semsg(_(e_listidx), n1); + semsg(_(e_listidx), n1_arg); return FAIL; } n1 = n1 < 0 ? 0 : len;