aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/typval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-04 16:42:20 +0800
committerGitHub <noreply@github.com>2023-05-04 16:42:20 +0800
commit38f9ee63660740ce1976173a8513b57bc41d94a3 (patch)
treef71b8841ee2b9bd0e7a51e184a64d3117f51cc3d /src/nvim/eval/typval.c
parentb9e34571f95b1480607c50d5303b4c63c3370374 (diff)
parent47132823ab1c4f458c945df89d12e897d77db8a8 (diff)
downloadrneovim-38f9ee63660740ce1976173a8513b57bc41d94a3.tar.gz
rneovim-38f9ee63660740ce1976173a8513b57bc41d94a3.tar.bz2
rneovim-38f9ee63660740ce1976173a8513b57bc41d94a3.zip
Merge pull request #23468 from zeertzjq/vim-8.2.1466
vim-patch:8.2.{1466,3336}
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r--src/nvim/eval/typval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c
index ba1d60959a..0b2be3074f 100644
--- a/src/nvim/eval/typval.c
+++ b/src/nvim/eval/typval.c
@@ -787,8 +787,8 @@ int tv_list_slice_or_index(list_T *list, bool range, int n1_arg, int n2_arg, typ
n1 = len + n1;
}
if (n1 < 0 || n1 >= len) {
- // For a range we allow invalid values and return an empty
- // list. A list index out of range is an error.
+ // For a range we allow invalid values and return an empty list.
+ // A list index out of range is an error.
if (!range) {
if (verbose) {
semsg(_(e_listidx), (int64_t)n1);