url-mode: auto-detect: don’t line-wrap URL is row isn’t line-wrapped

This commit is contained in:
Daniel Eklöf 2021-02-01 10:40:15 +01:00
parent eb0b244c89
commit 65caa33084
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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