mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.0.1659: scroll events not recognized for some xterm emulators
Problem: Scroll events not recognized for some xterm emulators. Solution: Recognize mouse codes 0x40 and 0x41 as scroll events.
This commit is contained in:
parent
79cf7c0d45
commit
1f8495cf48
@ -5195,10 +5195,13 @@ check_termcode(
|
|||||||
# ifdef FEAT_GUI
|
# ifdef FEAT_GUI
|
||||||
&& !gui.in_use
|
&& !gui.in_use
|
||||||
# endif
|
# endif
|
||||||
&& (mouse_code == 0x23 || mouse_code == 0x24))
|
&& (mouse_code == 0x23 || mouse_code == 0x24
|
||||||
|
|| mouse_code == 0x40 || mouse_code == 0x41))
|
||||||
{
|
{
|
||||||
/* Apparently used by rxvt scroll wheel. */
|
/* Apparently 0x23 and 0x24 are used by rxvt scroll wheel.
|
||||||
wheel_code = mouse_code - 0x23 + MOUSEWHEEL_LOW;
|
* And 0x40 and 0x41 are used by some xterm emulator. */
|
||||||
|
wheel_code = mouse_code - (mouse_code >= 0x40 ? 0x40 : 0x23)
|
||||||
|
+ MOUSEWHEEL_LOW;
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
@ -762,6 +762,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1659,
|
||||||
/**/
|
/**/
|
||||||
1658,
|
1658,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user