diff --git a/url-mode.c b/url-mode.c index 538b60f0..ab831c14 100644 --- a/url-mode.c +++ b/url-mode.c @@ -127,8 +127,8 @@ spawn_url_launcher(struct seat *seat, struct terminal *term, const char *url, return spawn_url_launcher_with_token(term, url, NULL); } -static void -activate_url(struct seat *seat, struct terminal *term, const struct url *url, +void +url_activate(struct seat *seat, struct terminal *term, const struct url *url, uint32_t serial) { char *url_string = NULL; @@ -262,7 +262,7 @@ urls_input(struct seat *seat, struct terminal *term, } if (match) { - activate_url(seat, term, match, serial); + url_activate(seat, term, match, serial); switch (match->action) { case URL_ACTION_COPY: diff --git a/url-mode.h b/url-mode.h index abfcb57b..29432bd0 100644 --- a/url-mode.h +++ b/url-mode.h @@ -15,6 +15,9 @@ 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 url_activate(struct seat *seat, struct terminal *term, + const struct url *url, uint32_t serial); void urls_assign_key_combos(const struct config *conf, url_list_t *urls); void urls_render(struct terminal *term);