From 161707fa605f7043a2d28843fa9ea08fb05799e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Thu, 26 Oct 2017 00:30:11 +0200 Subject: [PATCH] Fix button removal not working well --- js/term/buttons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/term/buttons.js b/js/term/buttons.js index 963f175..d9bd111 100644 --- a/js/term/buttons.js +++ b/js/term/buttons.js @@ -53,7 +53,7 @@ module.exports = function initButtons (input) { pushButton() } } else if (buttons.length > labels.length) { - for (let i = labels.length; i <= buttons.length; i++) { + for (let i = buttons.length; i > labels.length; i--) { popButton() } }