From e446cba6a99ffedefde9c318c040ec802a773342 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 18 Mar 2026 08:49:27 +0000 Subject: [PATCH] Copy hyperlinks when redrawing popup so they do not vanish, from Antoine Gaudreau Simard in GitHub issue 4925. --- popup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/popup.c b/popup.c index f913adb0..4ef1cc0a 100644 --- a/popup.c +++ b/popup.c @@ -280,6 +280,10 @@ popup_draw_cb(struct client *c, void *data, struct screen_redraw_ctx *rctx) popup_reapply_styles(pd); screen_init(&s, pd->sx, pd->sy, 0); + if (pd->s.hyperlinks != NULL) { + hyperlinks_free(s.hyperlinks); + s.hyperlinks = hyperlinks_copy(pd->s.hyperlinks); + } screen_write_start(&ctx, &s); screen_write_clearscreen(&ctx, 8);