diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-31 10:39:23 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 15:33:31 +0000 |
| commit | 2315aba458b662dcbb2ce4b8ceb3d9bfd14f4970 (patch) | |
| tree | 563f7dfa6127d394e8fe48fa4c5703b80ca20630 | |
| parent | url-mode: fix ‘n’ parameter to wcstombs() (diff) | |
url-mode: urls_reset() do an early return if we don’t have any URLs
| -rw-r--r-- | url-mode.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -321,6 +321,9 @@ urls_collect(struct terminal *term) void urls_reset(struct terminal *term) { + if (likely(tll_length(term->urls) == 0)) + return; + if (term->window != NULL) { tll_foreach(term->window->urls, it) { if (it->item.sub_surf != NULL) |
