Patch 9.0.0787 (after 9.0.0775)
Problem: MS-Windows: mouse scrolling in terminal misbehaves without dll.
Solution: Add #ifdef as a temporary solution. (Christopher Plewright,
closes #11392)
Files: src/os_win32.c
*** ../vim-9.0.0786/src/os_win32.c 2022-10-16 19:45:24.558960645 +0100
--- src/os_win32.c 2022-10-18 13:32:49.424975101 +0100
***************
*** 1397,1410 ****
// unprocessed mouse click?
if (g_nMouseClick != -1)
return TRUE;
!
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
}
!
nButton = -1;
g_xMouse = pmer->dwMousePosition.X;
g_yMouse = pmer->dwMousePosition.Y;
--- 1397,1410 ----
// 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;
*** ../vim-9.0.0786/src/version.c 2022-10-18 13:11:18.466896436 +0100
--- src/version.c 2022-10-18 13:31:00.853134212 +0100
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 787,
/**/
--
If you only have a hammer, you tend to see every problem as a nail.
If you only have MS-Windows, you tend to solve every problem by rebooting.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///