commit ca344b715b0755885fe1b45bd97db4f8bb1e1879
parent e64db1d284f0b89672f1ccf89018a88a63865cd6
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 8 May 2023 09:49:40 +0800
vim-patch:8.2.2459: Coverity reports dead code (#23531)
Problem: Coverity reports dead code.
Solution: Remove the dead code.
https://github.com/vim/vim/commit/8bead9a058907e7f10ad25893d8475d2d9dd173c
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
@@ -3677,9 +3677,6 @@ static int eval_index_inner(typval_T *rettv, bool is_range, typval_T *var1, typv
} else if (n2 >= len) {
n2 = len;
}
- if (exclusive) {
- n2--;
- }
if (n1 >= len || n2 < 0 || n1 > n2) {
v = NULL;
} else {