|
|
@ -20,6 +20,7 @@ export class TabProxy { |
|
|
|
|
|
|
|
|
|
|
|
fileManager.events.on('fileClosed', (name) => { |
|
|
|
fileManager.events.on('fileClosed', (name) => { |
|
|
|
this.removeTab(name) |
|
|
|
this.removeTab(name) |
|
|
|
|
|
|
|
this.switchPreviousTab() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
fileManager.events.on('currentFileChanged', (file) => { |
|
|
|
fileManager.events.on('currentFileChanged', (file) => { |
|
|
@ -104,7 +105,6 @@ export class TabProxy { |
|
|
|
const handlers = Object.keys(this._handlers) |
|
|
|
const handlers = Object.keys(this._handlers) |
|
|
|
let i = handlers.indexOf(active) |
|
|
|
let i = handlers.indexOf(active) |
|
|
|
if (i >= 0) { |
|
|
|
if (i >= 0) { |
|
|
|
i = handlers[i - 1] ? i - 1 : handlers.length - 1 |
|
|
|
|
|
|
|
this.switchTab(handlers[i]) |
|
|
|
this.switchTab(handlers[i]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|