aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-08 09:49:40 +0800
committerGitHub <noreply@github.com>2023-05-08 09:49:40 +0800
commitca344b715b0755885fe1b45bd97db4f8bb1e1879 (patch)
treefcdc867479b17d6e71bacead0e291e523db6eb05
parente64db1d284f0b89672f1ccf89018a88a63865cd6 (diff)
downloadrneovim-ca344b715b0755885fe1b45bd97db4f8bb1e1879.tar.gz
rneovim-ca344b715b0755885fe1b45bd97db4f8bb1e1879.tar.bz2
rneovim-ca344b715b0755885fe1b45bd97db4f8bb1e1879.zip
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>
-rw-r--r--src/nvim/eval.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 13299b0253..cb1f4d26fb 100644
--- 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 {