X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=blobdiff_plain;f=new2%2Frogue_chat.html;h=37eb27a426c53bdc893d118dff6432aaa3c6a56f;hb=9f4d671ee2c3813a6d437af361ac8d61624d8faa;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();