aboutsummaryrefslogtreecommitdiff
path: root/url-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'url-mode.c')
-rw-r--r--url-mode.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/url-mode.c b/url-mode.c
index a283c27e..5b144e9f 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -84,7 +84,8 @@ activate_url(struct seat *seat, struct terminal *term, const struct url *url)
}
break;
- case URL_ACTION_LAUNCH: {
+ case URL_ACTION_LAUNCH:
+ case URL_ACTION_PERSISTENT: {
size_t argc;
char **argv;
@@ -205,7 +206,18 @@ urls_input(struct seat *seat, struct terminal *term, uint32_t key,
if (match) {
activate_url(seat, term, match);
- urls_reset(term);
+
+ switch (match->action) {
+ case URL_ACTION_COPY:
+ case URL_ACTION_LAUNCH:
+ urls_reset(term);
+ break;
+
+ case URL_ACTION_PERSISTENT:
+ term->url_keys[0] = U'\0';
+ render_refresh_urls(term);
+ break;
+ }
}
else if (is_valid) {