aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-06 23:01:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:33:34 +0000
commitddd6f1d944100ab1eb9d01a73d19981aaf2e4332 (patch)
treea40386182cd08f569f54bfba53a802433f9d5431 /terminal.h
parentrender: urls: reduce vertical margin (diff)
url-mode: fix key sequence generation
* We were using the ‘back’ element of the list as prefix for the next iteration of sequences, instead of the element at index ‘offset’ * ALEN() on a wchar_t[] includes the NULL terminator. We don’t want that.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index b0084f63..43dd8e03 100644
--- a/terminal.h
+++ b/terminal.h
@@ -229,7 +229,7 @@ enum url_action { URL_ACTION_COPY, URL_ACTION_LAUNCH };
struct url {
wchar_t *url;
wchar_t *text;
- wchar_t key[4];
+ wchar_t *key;
struct coord start;
struct coord end;
enum url_action action;