Mercurial > vim
comparison src/mouse.c @ 28558:2edad5db074c v8.2.4803
patch 8.2.4803: WinScrolled not always triggered when scrolling with mouse
Commit: https://github.com/vim/vim/commit/66e13aedc7986c83644d537a8fdd3cb006507678
Author: LemonBoy <thatlemon@gmail.com>
Date: Thu Apr 21 22:52:11 2022 +0100
patch 8.2.4803: WinScrolled not always triggered when scrolling with mouse
Problem: WinScrolled not always triggered when scrolling with the mouse.
Solution: Add calls to may_trigger_winscrolled(). (closes https://github.com/vim/vim/issues/10246)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 22 Apr 2022 00:00:04 +0200 |
parents | 04310f81143d |
children | 26a2836923d6 |
comparison
equal
deleted
inserted
replaced
28557:e5203e5669c9 | 28558:2edad5db074c |
---|---|
1125 val = 0; | 1125 val = 0; |
1126 gui_do_horiz_scroll(val, TRUE); | 1126 gui_do_horiz_scroll(val, TRUE); |
1127 } | 1127 } |
1128 #endif | 1128 #endif |
1129 did_scroll = TRUE; | 1129 did_scroll = TRUE; |
1130 may_trigger_winscrolled(); | |
1130 } | 1131 } |
1131 | 1132 |
1132 curwin->w_redr_status = TRUE; | 1133 curwin->w_redr_status = TRUE; |
1133 | 1134 |
1134 curwin = old_curwin; | 1135 curwin = old_curwin; |
2085 # endif | 2086 # endif |
2086 # ifdef FEAT_SYN_HL | 2087 # ifdef FEAT_SYN_HL |
2087 if (curwin != old_curwin && curwin->w_p_cul) | 2088 if (curwin != old_curwin && curwin->w_p_cul) |
2088 redraw_for_cursorline(curwin); | 2089 redraw_for_cursorline(curwin); |
2089 # endif | 2090 # endif |
2091 may_trigger_winscrolled(); | |
2090 | 2092 |
2091 curwin->w_redr_status = TRUE; | 2093 curwin->w_redr_status = TRUE; |
2092 | 2094 |
2093 curwin = old_curwin; | 2095 curwin = old_curwin; |
2094 curbuf = curwin->w_buffer; | 2096 curbuf = curwin->w_buffer; |