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