]> granicus.if.org Git - vim/commitdiff
patch 9.0.0787: mouse scrolling in terminal misbehaves without dll v9.0.0787
authorChristopher Plewright <chris@createng.com>
Tue, 18 Oct 2022 12:33:26 +0000 (13:33 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 18 Oct 2022 12:33:26 +0000 (13:33 +0100)
Problem:    MS-Windows: mouse scrolling in terminal misbehaves without dll.
Solution:   Add #ifdef as a temporary solution. (Christopher Plewright,
            closes #11392)

src/os_win32.c
src/version.c

index 003fdea1b9a73a806645fe243d016e4a7e1a99c2..db43c9e81094dfb2194f1a886d9f517c4d8a517e 100644 (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;
index c39a83522d7acec70b326703f0f2de90cf05a7b5..87baf994b74557238549b4af621693d55965b060 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    787,
 /**/
     786,
 /**/