diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-13 12:45:59 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-21 19:15:29 +0000 |
| commit | fb9e9513a59126831862a59ce9db2d2896299441 (patch) | |
| tree | f395493817c72753bc1ec55070d2d867cd960cfa /render.c | |
| parent | term: add an ‘id’ member to the the ‘row_uri_range’ struct (diff) | |
url-mode: multiple URL (parts) with the same ID is assigned a single key sequence
In case an URL is split up into multiple parts, those parts are now
treated as a single URL when it comes to key assignment.
Only the *first* URL part is actually assigned a key combo. The other
parts are ignored.
We still highlight them, but for all other purposes they are ignored.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2531,6 +2531,12 @@ render_urls(struct terminal *term) const wchar_t *key = url->key; const size_t entered_key_len = wcslen(term->url_keys); + if (key == NULL) { + /* TODO: if we decide to use the .text field, we cannot + * just skip the entire jump label like this */ + continue; + } + struct wl_surface *surf = it->item.surf.surf; struct wl_subsurface *sub_surf = it->item.surf.sub; |
