diff options
author | LemonBoy <thatlemon@gmail.com> | 2022-04-21 22:52:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-21 22:52:11 +0100 |
commit | 66e13aedc7986c83644d537a8fdd3cb006507678 (patch) | |
tree | 4b7287de82d99492d9c089da74c0729ed3d15773 /src/mouse.c | |
parent | 7851c69a120ea6ce8c122dd7198adbe5aec83ea5 (diff) |
patch 8.2.4803: WinScrolled not always triggered when scrolling with mousev8.2.4803
Problem: WinScrolled not always triggered when scrolling with the mouse.
Solution: Add calls to may_trigger_winscrolled(). (closes #10246)
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mouse.c b/src/mouse.c index 42963341c5..a0c5156052 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -1127,6 +1127,7 @@ ins_mousescroll(int dir) } #endif did_scroll = TRUE; + may_trigger_winscrolled(); } curwin->w_redr_status = TRUE; @@ -2087,6 +2088,7 @@ nv_mousescroll(cmdarg_T *cap) if (curwin != old_curwin && curwin->w_p_cul) redraw_for_cursorline(curwin); # endif + may_trigger_winscrolled(); curwin->w_redr_status = TRUE; |