From 8c88fd160e5401f659b0b74386a127248c6ad8f4 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 29 Oct 2020 00:06:07 +0100 Subject: [PATCH] Fix input backspace bug. --- new2/rogue_chat_nocanvas_monochrome.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index 14668ea..32a3781 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -234,10 +234,8 @@ let tui = { this.height_input = this.input_lines.length; }, shorten_input: function() { - if (this.input.length > 2) { - this.input = tui.input.slice(0, -1); - this.recalc_input_lines(); - } + this.input = tui.input.slice(0, -1); + this.recalc_input_lines(); }, draw_input: function() { terminal.drawBox(terminal.rows - this.height_input, this.window_width, this.height_input, this.window_width); -- 2.30.2