mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 21:06:13 +00:00
fix(terminal): fix 'mousescroll' not respected in terminal mode (#21415)
This commit is contained in:
@@ -1439,8 +1439,8 @@ static bool send_mouse_event(Terminal *term, int c)
|
||||
int direction = c == K_MOUSEDOWN ? MSCR_DOWN : MSCR_UP;
|
||||
if (mod_mask & (MOD_MASK_SHIFT | MOD_MASK_CTRL)) {
|
||||
scroll_redraw(direction, curwin->w_botline - curwin->w_topline);
|
||||
} else {
|
||||
scroll_redraw(direction, 3L);
|
||||
} else if (p_mousescroll_vert > 0) {
|
||||
scroll_redraw(direction, p_mousescroll_vert);
|
||||
}
|
||||
|
||||
curwin->w_redr_status = true;
|
||||
|
Reference in New Issue
Block a user