From c17c801a316b99d3cbf0802c0aa39379a8565d2c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 Dec 2018 14:43:01 +0530 Subject: [PATCH] Detect URL when clicking to activate URL Makes the case where the screen contents have changed between the last mouse move and the click work. See #1203 --- kitty/mouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/mouse.c b/kitty/mouse.c index d1eb76917..7ddaacdf6 100644 --- a/kitty/mouse.c +++ b/kitty/mouse.c @@ -364,6 +364,7 @@ HANDLER(add_click) { static inline void open_url(Window *w) { Screen *screen = w->render_data.screen; + detect_url(screen, w->mouse_pos.cell_x, w->mouse_pos.cell_y); screen_open_url(screen); }