X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=new2%2Frogue_chat.html;h=37eb27a426c53bdc893d118dff6432aaa3c6a56f;hb=0989f4146b1a162634186fc8f901c9927294df66;hp=f584ddd3108ccecbbb035047a5d9245a3984456f;hpb=609edc98f5c2c8785f90355d54847d24d0e49eec;p=plomrogue2-experiments 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();