aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--url-mode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/url-mode.c b/url-mode.c
index 2a3ee41d..40f3372f 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -474,6 +474,9 @@ urls_render(struct terminal *term)
struct wl_window *win = term->window;
struct wayland *wayl = term->wl;
+ if (tll_length(win->term->urls) == 0)
+ return;
+
xassert(tll_length(win->urls) == 0);
tll_foreach(win->term->urls, it) {
struct wl_surface *surf = wl_compositor_create_surface(wayl->compositor);