aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-03-28 14:45:35 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-03-28 14:46:21 +0800
commite2e0f92f17c84af160e2c563d9b73d6ea797943b (patch)
treed24c6b790dd0f81dcb519fa77a256047a6d451d6 /src
parent2331c52affe64070ad59c0ef63ddcc8f7ca41781 (diff)
downloadrneovim-e2e0f92f17c84af160e2c563d9b73d6ea797943b.tar.gz
rneovim-e2e0f92f17c84af160e2c563d9b73d6ea797943b.tar.bz2
rneovim-e2e0f92f17c84af160e2c563d9b73d6ea797943b.zip
vim-patch:9.1.1246: coverity complains about some changes in v9.1.1243
Problem: coverity complains about some changes in v9.1.1243 Solution: remove duplicate code in diff_find_changed() (Yee Cheng Chin) closes: vim/vim#16988 https://github.com/vim/vim/commit/4f9b1243e3ef60b9efb64a4e789c55be3cdc7a25 Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/diff.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index 585a937558..1c985e939c 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -3232,7 +3232,6 @@ bool diff_find_change(win_T *wp, linenr_T lnum, diffline_T *diffline)
// Create a mock diffline struct. We always only have one so no need to
// allocate memory.
- idx = diff_buf_idx(wp->w_buffer, curtab);
CLEAR_FIELD(simple_diffline_change);
diffline->changes = &simple_diffline_change;
diffline->num_changes = 1;