mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04: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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (c >= term->cols - 1 && row->linebreak)
|
||||||
|
emit_url = true;
|
||||||
|
|
||||||
if (emit_url) {
|
if (emit_url) {
|
||||||
/* Heuristic to remove trailing characters that
|
/* Heuristic to remove trailing characters that
|
||||||
* are valid URL characters, but typically not at
|
* are valid URL characters, but typically not at
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue