mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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)
This commit is contained in:
committed by
Bram Moolenaar
parent
63a2e360cc
commit
36446bbb62
11
src/term.c
11
src/term.c
@@ -5857,12 +5857,15 @@ check_termcode(
|
||||
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user