mirror of
https://github.com/neovim/neovim.git
synced 2026-05-06 08:26:45 -04:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user