Copy hyperlinks when redrawing popup so they do not vanish, from Antoine

Gaudreau Simard in GitHub issue 4925.
This commit is contained in:
nicm
2026-03-18 08:49:27 +00:00
parent 02a9cdff57
commit e446cba6a9

View File

@@ -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);