mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
vim-patch:9.1.0077: Unnecessary call to redraw_for_cursorline() in nv_mousescroll() (#27359)
Problem: The call to redraw_for_cursorline() in nv_mousescroll() is
unnecessary because redraw_for_cursorline() only sets redraw
type to UPD_VALID, and all code paths in do_mousescroll()
already set redraw type to at least UPD_VALID.
Solution: Remove call to redraw_for_cursorline() in nv_mousescroll().
(zeertzjq)
closes: vim/vim#13979
3f1b5312e0
This commit is contained in:
@@ -1571,9 +1571,6 @@ void nv_mousescroll(cmdarg_T *cap)
|
||||
// Call the common mouse scroll function shared with other modes.
|
||||
do_mousescroll(cap);
|
||||
|
||||
if (curwin != old_curwin && curwin->w_p_cul) {
|
||||
redraw_for_cursorline(curwin);
|
||||
}
|
||||
curwin->w_redr_status = true;
|
||||
curwin = old_curwin;
|
||||
curbuf = curwin->w_buffer;
|
||||
|
Reference in New Issue
Block a user