summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 1ed2fbf1a2..bbc6d6ec29 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1745,8 +1745,10 @@ vgetc(void)
// 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
)
{