aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--url-mode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/url-mode.c b/url-mode.c
index fecbaa6b..78291685 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -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