Fix being unable to go to tab 1

This commit is contained in:
j433866 2019-04-04 14:42:21 +01:00
parent 0804647441
commit 9690ccd8a0
3 changed files with 5 additions and 5 deletions

View file

@ -544,7 +544,7 @@ class OutputWaiter {
*/
goToTab() {
const tabNum = parseInt(window.prompt("Enter tab number:", this.getActiveTab().toString()), 10);
if (this.getOutputIndex(tabNum)) {
if (this.getOutputIndex(tabNum) >= 0) {
this.changeTab(tabNum, this.app.options.syncTabs);
}
}