1
0
forked from aniani/vim

patch 9.0.0787: mouse scrolling in terminal misbehaves without dll

Problem:    MS-Windows: mouse scrolling in terminal misbehaves without dll.
Solution:   Add #ifdef as a temporary solution. (Christopher Plewright,
            closes #11392)
This commit is contained in:
Christopher Plewright
2022-10-18 13:33:26 +01:00
committed by Bram Moolenaar
parent 208567e9d7
commit 9298a996fc
2 changed files with 4 additions and 2 deletions

View File

@@ -1397,14 +1397,14 @@ decode_mouse_event(
// unprocessed mouse click?
if (g_nMouseClick != -1)
return TRUE;
#ifdef VIMDLL
if (pmer->dwEventFlags == MOUSE_WHEELED
|| pmer->dwEventFlags == MOUSE_HWHEELED)
{
decode_mouse_wheel(pmer);
return TRUE; // we now should have a mouse scroll in g_nMouseClick
}
#endif
nButton = -1;
g_xMouse = pmer->dwMousePosition.X;
g_yMouse = pmer->dwMousePosition.Y;

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
787,
/**/
786,
/**/