From de649b6137ec1c5f7f684ef44e48d9a881a2744f Mon Sep 17 00:00:00 2001 From: K4 Date: Tue, 25 Aug 2026 15:03:58 +0300 Subject: term: wrap url related fields into a struct --- terminal.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 0cac1e3b..32145cac 100644 --- a/terminal.h +++ b/terminal.h @@ -793,13 +793,14 @@ struct terminal { unsigned max_height; /* Maximum image height, in pixels */ } sixel; - /* TODO: wrap in a struct */ - url_list_t urls; - char32_t url_keys[5]; - bool urls_show_uri_on_jump_label; - struct grid *url_grid_snapshot; - bool ime_reenable_after_url_mode; - const struct config_spawn_template *url_launch; + struct { + url_list_t list; + char32_t keys[5]; + bool show_uri_on_jump_label; + struct grid *grid_snapshot; + bool ime_reenable_after_url_mode; + const struct config_spawn_template *launch; + } url; #if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED bool ime_enabled; -- cgit v1.3