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:
committed by
Bram Moolenaar
parent
208567e9d7
commit
9298a996fc
@@ -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;
|
||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
787,
|
||||
/**/
|
||||
786,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user