# HG changeset patch # User Bram Moolenaar # Date 1666097103 -7200 # Node ID 5137a0968a5c9b02d7d2768b1f0ed987d26a754c # Parent 73b169b2dabd3ec6f9827bf7afe9d9f8cb94878c patch 9.0.0787: mouse scrolling in terminal misbehaves without dll Commit: https://github.com/vim/vim/commit/9298a996fc54e483dc29c0700edf3c5fe9d0f6a9 Author: Christopher Plewright Date: Tue Oct 18 13:33:26 2022 +0100 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) diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 787, +/**/ 786, /**/ 785,