mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
url-mode: auto-detect: don’t line-wrap URL is row isn’t line-wrapped
This commit is contained in:
parent
eb0b244c89
commit
65caa33084
1 changed files with 3 additions and 0 deletions
|
|
@ -238,6 +238,9 @@ auto_detected(struct terminal *term)
|
|||
break;
|
||||
}
|
||||
|
||||
if (c >= term->cols - 1 && row->linebreak)
|
||||
emit_url = true;
|
||||
|
||||
if (emit_url) {
|
||||
/* Heuristic to remove trailing characters that
|
||||
* are valid URL characters, but typically not at
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue