comparison src/mouse.c @ 31166:a86ee6c0309e v9.0.0917

patch 9.0.0917: the WinScrolled autocommand event is not enough Commit: https://github.com/vim/vim/commit/35fc61cb5b5eba8bbb9d8f0700332fbab38f40ca Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 22 12:40:50 2022 +0000 patch 9.0.0917: the WinScrolled autocommand event is not enough Problem: The WinScrolled autocommand event is not enough. Solution: Add WinResized and provide information about what changed. (closes #11576)
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Nov 2022 13:45:04 +0100
parents 7e48ddb8b079
children fa26d002eb2a
comparison
equal deleted inserted replaced
31165:b1c24c44852a 31166:a86ee6c0309e
1169 + (cap->arg == MSCR_RIGHT ? -step : step); 1169 + (cap->arg == MSCR_RIGHT ? -step : step);
1170 if (leftcol < 0) 1170 if (leftcol < 0)
1171 leftcol = 0; 1171 leftcol = 0;
1172 do_mousescroll_horiz((long_u)leftcol); 1172 do_mousescroll_horiz((long_u)leftcol);
1173 } 1173 }
1174 may_trigger_winscrolled(); 1174 may_trigger_win_scrolled_resized();
1175 } 1175 }
1176 1176
1177 /* 1177 /*
1178 * Insert mode implementation for scrolling in direction "dir", which is 1178 * Insert mode implementation for scrolling in direction "dir", which is
1179 * one of the MSCR_ values. 1179 * one of the MSCR_ values.