aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/typval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-23 08:01:43 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-03-23 08:07:05 +0800
commite4a23b6e0b4f68c284b9cc479df842f934b5ac05 (patch)
tree2b1fcff2f319e14392bf40b0b29c270cfc99d5f2 /src/nvim/eval/typval.c
parenta44ac26c752028d50eaff5d39fadb8115c2ddaa9 (diff)
downloadrneovim-e4a23b6e0b4f68c284b9cc479df842f934b5ac05.tar.gz
rneovim-e4a23b6e0b4f68c284b9cc479df842f934b5ac05.tar.bz2
rneovim-e4a23b6e0b4f68c284b9cc479df842f934b5ac05.zip
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 vim/vim#7643) https://github.com/vim/vim/commit/e7525c552060dd04aacdbca6bb5fe6460cf4da60 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r--src/nvim/eval/typval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c
index 9328f53dbd..eb8c89c36e 100644
--- a/src/nvim/eval/typval.c
+++ b/src/nvim/eval/typval.c
@@ -859,7 +859,7 @@ int tv_list_slice_or_index(list_T *list, bool range, varnumber_T n1_arg, varnumb
// A list index out of range is an error.
if (!range) {
if (verbose) {
- semsg(_(e_list_index_out_of_range_nr), (int64_t)n1);
+ semsg(_(e_list_index_out_of_range_nr), (int64_t)n1_arg);
}
return FAIL;
}