mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 13:26:06 +00:00
fix(terminal): fix 'mousescroll' not respected in terminal mode
(cherry picked from commit 7c0e5e68a4
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
faa5ecce93
commit
da47f6e56a
@@ -1415,8 +1415,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