patch 9.1.2142: MS-Windows: mouse scroll events not handled for popups
Commit:
https://github.com/vim/vim/commit/18dd63808cdb7ab40bcb798b40f9f813024741e9
Author: Mao-Yining <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vpWiu-003vz7-Fx%40256bit.org.