Handle an empty path to mean no pwd (#3399)

Fixes #3398
This commit is contained in:
Mitchell Hashimoto
2024-12-27 11:55:36 -08:00
committed by GitHub

View File

@ -69,7 +69,7 @@ struct TerminalView<ViewModel: TerminalViewModel>: View {
// The pwd of the focused surface as a URL
private var pwdURL: URL? {
guard let surfacePwd else { return nil }
guard let surfacePwd, surfacePwd != "" else { return nil }
return URL(fileURLWithPath: surfacePwd)
}