patch 9.0.0931: MS-Windows: mouse column limited to 223
Problem: MS-Windows: mouse column limited to 223.
Solution: Use two bytes for each mouse coordinate. Add the mouse position
to scroll events. (Christopher Plewright, closes #11597)
diff --git a/src/term.c b/src/term.c
index 7f639dd..981e216 100644
--- a/src/term.c
+++ b/src/term.c
@@ -5857,12 +5857,15 @@
// We only get here when we have a complete termcode match
-#ifdef FEAT_GUI
+#if defined(FEAT_GUI) || defined(MSWIN)
/*
- * Only in the GUI: Fetch the pointer coordinates of the scroll event
- * so that we know which window to scroll later.
+ * For scroll events from the GUI or MS-Windows console, fetch the
+ * pointer coordinates so that we know which window to scroll later.
*/
- if (gui.in_use
+ if (TRUE
+# if defined(FEAT_GUI) && !defined(MSWIN)
+ && gui.in_use
+# endif
&& key_name[0] == (int)KS_EXTRA
&& (key_name[1] == (int)KE_X1MOUSE
|| key_name[1] == (int)KE_X2MOUSE