From ee076282913300d1314f00587dbd99fdfc9bd875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 28 Jul 2021 11:53:57 +0200 Subject: [PATCH] =?UTF-8?q?url-mode:=20add=20=E2=80=98<=E2=80=99=20and=20?= =?UTF-8?q?=E2=80=98>=E2=80=99=20to=20the=20list=20of=20valid=20URL=20char?= =?UTF-8?q?acters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ url-mode.c | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d971660..3ee7fa48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,8 @@ * Foot now sends `SIGTERM`/`SIGKILL` to the client application’s process group, instead of just to the client application’s process. * `kmous` terminfo capability from `\E[M` to `\E[<`. +* `<` and `>` are now recognized as valid URL characters + (https://codeberg.org/dnkl/foot/issues/654). ### Deprecated diff --git a/url-mode.c b/url-mode.c index a802cc6c..0efb3ad6 100644 --- a/url-mode.c +++ b/url-mode.c @@ -288,6 +288,7 @@ auto_detected(const struct terminal *term, enum url_action action, case L'/': case L'?': case L'#': case L'@': case L'!': case L'$': case L'&': case L'\'': case L'*': case L'+': case L',': case L';': case L'=': case L'"': case L'%': + case L'<': case L'>': url[len++] = wc; break;