1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-23 21:34:13 +03:00
This commit is contained in:
Eugene Pankov 2018-02-12 16:54:04 +01:00
parent 245c65d750
commit fde16b8699
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -34,7 +34,7 @@ export class TerminalService {
async openTab (shell?: IShell, cwd?: string): Promise<TerminalTabComponent> {
if (!cwd) {
if (this.app.activeTab instanceof TerminalTabComponent) {
if (this.app.activeTab instanceof TerminalTabComponent && this.app.activeTab.session) {
cwd = await this.app.activeTab.session.getWorkingDirectory()
} else {
cwd = this.config.store.terminal.workingDirectory || null