Fix button removal not working well

pull/1/head
Ondřej Hruška 7 years ago
parent 0794030210
commit 161707fa60
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      js/term/buttons.js

@ -53,7 +53,7 @@ module.exports = function initButtons (input) {
pushButton() pushButton()
} }
} else if (buttons.length > labels.length) { } 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() popButton()
} }
} }

Loading…
Cancel
Save