From 714165a2877c0de5bee0211cca3622be9ee8cef3 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Tue, 16 Jul 2019 10:20:42 +0200 Subject: [PATCH] fixed next active tab --- src/app/panels/tab-proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/panels/tab-proxy.js b/src/app/panels/tab-proxy.js index ff9e55599d..99b40deb7a 100644 --- a/src/app/panels/tab-proxy.js +++ b/src/app/panels/tab-proxy.js @@ -20,6 +20,7 @@ export class TabProxy { fileManager.events.on('fileClosed', (name) => { this.removeTab(name) + this.switchPreviousTab() }) fileManager.events.on('currentFileChanged', (file) => { @@ -104,7 +105,6 @@ export class TabProxy { const handlers = Object.keys(this._handlers) let i = handlers.indexOf(active) if (i >= 0) { - i = handlers[i - 1] ? i - 1 : handlers.length - 1 this.switchTab(handlers[i]) } }