From 0989f4146b1a162634186fc8f901c9927294df66 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 25 Oct 2020 19:50:28 +0100
Subject: [PATCH] Minor fix.

---
 new2/rogue_chat.html | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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();
-- 
2.30.2