From 682c6fc17c32041d064e92c08d13f05b0017526c Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Thu, 1 May 2025 07:02:04 -0400 Subject: [PATCH] Fix formatting. --- doc/foot.ini.5.scd | 3 +-- url-mode.c | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index bed62ca0..ba7e8ea8 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -1358,8 +1358,7 @@ e.g. *search-start=none*. Enter URL mode, where all currently visible URLs are tagged with a jump label with a key sequence that will place the URL in the clipboard. If the hint is completed with an uppercase character, - the match will also be pasted. Default: _Control+Shift+o_. - Default: _none_. + the match will also be pasted. Default: _none_. *regex-launch* Enter regex mode. This works exactly the same as URL mode; all diff --git a/url-mode.c b/url-mode.c index 4210be90..199ff3f1 100644 --- a/url-mode.c +++ b/url-mode.c @@ -160,13 +160,13 @@ activate_url(struct seat *seat, struct terminal *term, const struct url *url, switch (url->action) { case URL_ACTION_COPY: if (paste_url_to_self) { - if (term->bracketed_paste) - term_to_slave(term, "\033[200~", 6); + if (term->bracketed_paste) + term_to_slave(term, "\033[200~", 6); - term_to_slave(term, url_string, strlen(url_string)); + term_to_slave(term, url_string, strlen(url_string)); - if (term->bracketed_paste) - term_to_slave(term, "\033[201~", 6); + if (term->bracketed_paste) + term_to_slave(term, "\033[201~", 6); } if (text_to_clipboard(seat, term, url_string, seat->kbd.serial)) { /* Now owned by our clipboard “manager” */