mirror of
https://github.com/neovim/neovim.git
synced 2026-07-21 08:31:47 +00:00
diff: Silence -V519
Not exactly a false positive, but previous assignment is a part of the pattern “change global, run code which uses it, change global back”.
This commit is contained in:
@@ -1076,8 +1076,8 @@ void diff_win_options(win_T *wp, int addbuf)
|
||||
if (!wp->w_p_diff) {
|
||||
wp->w_p_wrap_save = wp->w_p_wrap;
|
||||
}
|
||||
wp->w_p_wrap = FALSE;
|
||||
curwin = wp;
|
||||
wp->w_p_wrap = false;
|
||||
curwin = wp; // -V519
|
||||
curbuf = curwin->w_buffer;
|
||||
|
||||
if (!wp->w_p_diff) {
|
||||
|
||||
Reference in New Issue
Block a user