From c7006661f5edc55cf235a647da67e0e26e7fe594 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 13 Feb 2021 11:43:28 +0100 Subject: url-mode: use ‘jump-label-letters’ as the alphabet for key sequences MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of hard coding the alphabet to “sadfjklewcmpgh”, use the letters from ‘jump-label-letters’. Closes #355 --- url-mode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'url-mode.h') diff --git a/url-mode.h b/url-mode.h index 12d20192..28abde18 100644 --- a/url-mode.h +++ b/url-mode.h @@ -4,6 +4,7 @@ #include #include +#include "config.h" #include "terminal.h" static inline bool urls_mode_is_active(const struct terminal *term) @@ -13,7 +14,7 @@ static inline bool urls_mode_is_active(const struct terminal *term) void urls_collect( const struct terminal *term, enum url_action action, url_list_t *urls); -void urls_assign_key_combos(url_list_t *urls); +void urls_assign_key_combos(const struct config *conf, url_list_t *urls); void urls_render(struct terminal *term); void urls_reset(struct terminal *term); -- cgit v1.3