X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=blobdiff_plain;f=rogue_chat.html;h=381825429fb4240e7aa521c881e9e4157073df4d;hb=5e761a8855223b0b51a22b5f3b0de353fd2f8f86;hp=74d3a2e774ec797c9de5f6e3b02eeb3d0e97a19b;hpb=b2597131e3b5faa43d0302e4b61b33674955e698;p=plomrogue2 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; }