diff --git a/kitty/mouse.c b/kitty/mouse.c index afa814a89..1d8e52ecd 100644 --- a/kitty/mouse.c +++ b/kitty/mouse.c @@ -337,6 +337,7 @@ multi_click(Window *w, unsigned int count) { unsigned int y1, y2; switch(count) { case 2: + y1 = w->mouse_pos.cell_y; if (screen_selection_range_for_word(screen, w->mouse_pos.cell_x, &y1, &y2, &start, &end, true)) mode = EXTEND_WORD; break; case 3: