summaryrefslogtreecommitdiffstats
path: root/src/gui_w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 0bac12ac0d..3e1addbf91 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -4153,7 +4153,8 @@ _OnMouseWheel(HWND hwnd, WPARAM wParam, LPARAM lParam, int horizontal)
{
int button;
win_T *wp;
- int modifiers, kbd_modifiers;
+ int modifiers = 0;
+ int kbd_modifiers;
int zDelta = GET_WHEEL_DELTA_WPARAM(wParam);
POINT pt;
@@ -4213,7 +4214,7 @@ _OnMouseWheel(HWND hwnd, WPARAM wParam, LPARAM lParam, int horizontal)
pt.y = GET_Y_LPARAM(lParam);
ScreenToClient(s_textArea, &pt);
- gui_send_mouse_event(button, pt.x, pt.y, FALSE, kbd_modifiers);
+ gui_send_mouse_event(button, pt.x, pt.y, FALSE, modifiers);
}
#ifdef USE_SYSMENU_FONT