mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04:00
url-mode: urls_render(): early exit when URL list is empty
This commit is contained in:
parent
9ee392dc8c
commit
24263412dc
1 changed files with 3 additions and 0 deletions
|
|
@ -474,6 +474,9 @@ urls_render(struct terminal *term)
|
||||||
struct wl_window *win = term->window;
|
struct wl_window *win = term->window;
|
||||||
struct wayland *wayl = term->wl;
|
struct wayland *wayl = term->wl;
|
||||||
|
|
||||||
|
if (tll_length(win->term->urls) == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
xassert(tll_length(win->urls) == 0);
|
xassert(tll_length(win->urls) == 0);
|
||||||
tll_foreach(win->term->urls, it) {
|
tll_foreach(win->term->urls, it) {
|
||||||
struct wl_surface *surf = wl_compositor_create_surface(wayl->compositor);
|
struct wl_surface *surf = wl_compositor_create_surface(wayl->compositor);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue