diff options
| author | Ryan Roden-Corrent <git@rrc.codes> | 2025-08-07 12:18:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-08-31 09:36:28 +0000 |
| commit | 298196365c06c13dd16a74e34e03d9de93670473 (patch) | |
| tree | 9ebd7f70ca9ae60799bb369c813df12fb9c3d993 /url-mode.c | |
| parent | input: unit test: check pipe2() return value (diff) | |
config: add 'uppercase-regex-insert'
This makes the "uppercase hint character inserts selected text"
behavior added in #1975 configurable, as it can have unexpected
behavior for some users.
It defaults to "on", preserving the new behavior of `foot`, after
Fixes #2159.
Diffstat (limited to 'url-mode.c')
| -rw-r--r-- | url-mode.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -283,7 +283,8 @@ urls_input(struct seat *seat, struct terminal *term, if (match) { // If the last hint character was uppercase, copy and paste - activate_url(seat, term, match, serial, wc == toc32upper(wc)); + bool insert = term->conf->uppercase_regex_insert && wc == toc32upper(wc); + activate_url(seat, term, match, serial, insert); switch (match->action) { case URL_ACTION_COPY: |
