1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-23 13:13:49 +03:00

fixed cwd for new tabs on windows (fixes #378)

This commit is contained in:
Eugene Pankov 2018-09-23 09:25:49 -07:00
parent 7f8d012a8a
commit eed01e76ad

View File

@ -38,9 +38,9 @@ export class TerminalService {
if (!cwd) {
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
}
cwd = cwd || this.config.store.terminal.workingDirectory
cwd = cwd || null
}
if (!shell) {
let shells = await this.shells$.toPromise()