patch 9.0.0793: MS-Windows: mouse scroll events only work with the dll
Problem: MS-Windows: mouse scroll events only work with the dll.
Solution: Accept CSI codes for MS-Windows without the GUI. (Christopher
Plewright, closes #11401)
diff --git a/src/getchar.c b/src/getchar.c
index 1ed2fbf..bbc6d6e 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1745,8 +1745,10 @@
// Get two extra bytes for special keys
if (c == K_SPECIAL
-#ifdef FEAT_GUI
- || (c == CSI)
+#if defined(FEAT_GUI) || defined(MSWIN)
+ // GUI codes start with CSI; MS-Windows sends mouse scroll
+ // events with CSI.
+ || c == CSI
#endif
)
{