From: Christian Heller Date: Fri, 27 Nov 2020 02:16:01 +0000 (+0100) Subject: Fix minor link formatting bug. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/add_free?a=commitdiff_plain;h=aca7ee454a58648c8747bb94feff10b93c2ee4e2;p=plomrogue2 Fix minor link formatting bug. --- diff --git a/rogue_chat.html b/rogue_chat.html index 74d3a2e..3818254 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -814,6 +814,10 @@ let tui = { if (in_link) { push_inner_link(y, chunk.length); url_start_x = 0; + if (url_ends[0] == i) { + in_link = false; + url_ends.shift(); + } }; lines.push(chunk); chunk = ""; @@ -830,7 +834,8 @@ let tui = { url_start_x = x; url = link_data[i]; in_link = true; - } else if (url_ends.includes(i)) { + } else if (url_ends[0] == i) { + url_ends.shift(); push_inner_link(y, x); in_link = false; }