Commit: patch 9.1.2142: MS-Windows: mouse scroll events not handled for popups

0 views
Skip to first unread message

Christian Brabandt

unread,
Feb 9, 2026, 2:16:35 PM (21 hours ago) Feb 9
to vim...@googlegroups.com
patch 9.1.2142: MS-Windows: mouse scroll events not handled for popups

Commit: https://github.com/vim/vim/commit/18dd63808cdb7ab40bcb798b40f9f813024741e9
Author: Mao-Yining <mao.y...@outlook.com>
Date: Mon Feb 9 18:49:48 2026 +0000

patch 9.1.2142: MS-Windows: mouse scroll events not handled for popups

Problem: MS-Windows: mouse scroll events not handled for popups
Solution: Do not return early (Mao-Yining)

Ensure mouse wheel events on popup windows are properly processed by
sending the corresponding key messages. Previously, early returns
prevented normal event flow, causing popup windows to ignore scroll
input.

fixes: #19353
closes: #19369

Signed-off-by: Mao-Yining <mao.y...@outlook.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/gui_w32.c b/src/gui_w32.c
index 59f288079..3c5178067 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -4742,7 +4742,6 @@ _OnMouseWheel(HWND hwnd UNUSED, WPARAM wParam, LPARAM lParam, int horizontal)
update_screen(0);
setcursor();
out_flush();
- return;
}
#endif

diff --git a/src/os_win32.c b/src/os_win32.c
index 9526a6ae9..a3d66c4b9 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -1507,7 +1507,6 @@ decode_mouse_wheel(MOUSE_EVENT_RECORD *pmer)
update_screen(0);
setcursor();
out_flush();
- return;
}
# endif
mouse_col = g_xMouse;
diff --git a/src/version.c b/src/version.c
index 5f437f42d..6a6eaecb9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2142,
/**/
2141,
/**/
Reply all
Reply to author
Forward
0 new messages