From db1f53fc29d6517bde8cc264499fea7b02447ea4 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 2 Apr 2019 18:31:32 -0400 Subject: [PATCH] Double-click + drag to select multiple words This patch reverts part of cb095be0cc5f3a2ca560dd1474a62bc7aa2a5a46 to allow again to double-click and then drag to select multiple words. With this patch, the primary selection is still not updated until you release the mouse's left button, but the selection does not "block" on the first word while trying to double-click and drag. I believe this behaviour has come to be expected by users, since GNOME Terminal, Terminator, xterm, rxvt, major browsers, LibreOffice, and many more significant applications have it. Signed-off-by: Philippe Proulx --- kitty/mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/mouse.c b/kitty/mouse.c index 4f00d84c9..083cd5419 100644 --- a/kitty/mouse.c +++ b/kitty/mouse.c @@ -321,7 +321,7 @@ multi_click(Window *w, unsigned int count) { } if (found_selection) { screen_start_selection(screen, start, y1, false, mode); - screen_update_selection(screen, end, y2, true); + screen_update_selection(screen, end, y2, false); } }