mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
Bracket pastes.
This commit is contained in:
parent
6e810fb677
commit
984d3925d3
1 changed files with 6 additions and 0 deletions
|
|
@ -279,7 +279,13 @@ urls_input(struct seat *seat, struct terminal *term,
|
||||||
case URL_ACTION_COPY:
|
case URL_ACTION_COPY:
|
||||||
// If the last hint character was uppercase, copy and paste
|
// If the last hint character was uppercase, copy and paste
|
||||||
if (wc >= 'A' && wc <= 'Z') {
|
if (wc >= 'A' && wc <= 'Z') {
|
||||||
|
if (term->bracketed_paste)
|
||||||
|
term_to_slave(term, "\033[200~", 6);
|
||||||
|
|
||||||
term_to_slave(term, match->url, strlen(match->url));
|
term_to_slave(term, match->url, strlen(match->url));
|
||||||
|
|
||||||
|
if (term->bracketed_paste)
|
||||||
|
term_to_slave(term, "\033[201~", 6);
|
||||||
}
|
}
|
||||||
urls_reset(term);
|
urls_reset(term);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue