diff src/list.c @ 23551:1bb7fa4f9b35 v8.2.2318

patch 8.2.2318: Vim9: string and list index work differently Commit: https://github.com/vim/vim/commit/e7525c552060dd04aacdbca6bb5fe6460cf4da60 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 9 13:20:37 2021 +0100 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 https://github.com/vim/vim/issues/7643)
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Jan 2021 13:30:04 +0100
parents d2b1269c2c68
children 34aa2907082a
line wrap: on
line diff
--- a/src/list.c
+++ b/src/list.c
@@ -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;