From e2a603dcda80303b919686cfb88c4b2efc927004 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 25 Feb 2020 21:44:54 +0530 Subject: [PATCH] Fix failing selection test Unintialized memory use, was not creating an issue in debug builds only on the CI servers --- kitty/mouse.c | 1 + 1 file changed, 1 insertion(+) 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: