summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorChristopher Plewright <chris@createng.com>2022-10-19 11:54:46 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-19 11:54:46 +0100
commit605d02a9b73cb49ac5022a127db3eac7e16a5d83 (patch)
tree9a2a0e646404bc6159a06e36ffef86a1ba626838 /src/getchar.c
parentbf72e0c67f26ea7c8fd941fdd1533c24c7b6cb43 (diff)
patch 9.0.0793: MS-Windows: mouse scroll events only work with the dllv9.0.0793
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)
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
)
{