From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 25 Oct 2020 18:50:28 +0000 (+0100)
Subject: Minor fix.
X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/static/gitweb.js?a=commitdiff_plain;h=0989f4146b1a162634186fc8f901c9927294df66;p=plomrogue2-experiments

Minor fix.
---

diff --git a/new2/rogue_chat.html b/new2/rogue_chat.html
index f584ddd..37eb27a 100644
--- a/new2/rogue_chat.html
+++ b/new2/rogue_chat.html
@@ -147,8 +147,7 @@ let tui = {
       chunk += msg[i];
     }
     chat.history.unshift(' '.repeat(indent) + chunk);
-    if (chat.history.length > terminal.rows - 2) {
-
+    while (chat.history.length > terminal.rows - 2) {
       chat.history.pop();
     };
     this.draw_history();