From 65caa33084426cb00df96eda1089768b4251b811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 1 Feb 2021 10:40:15 +0100 Subject: [PATCH] =?UTF-8?q?url-mode:=20auto-detect:=20don=E2=80=99t=20line?= =?UTF-8?q?-wrap=20URL=20is=20row=20isn=E2=80=99t=20line-wrapped?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- url-mode.c | 3 +++ 1 file changed, 3 insertions(+) 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