Skip to content
Snippets Groups Projects
Commit d98f5b16 authored by George Nachman's avatar George Nachman
Browse files

Fix a bug where non-shell integration users would not get current directory...

Fix a bug where non-shell integration users would not get current directory recycling. If shell integration was never used then -[PTYSession currentLocalWorkingDirectory] would return nil. Issue 5634.
parent e338a12e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -8168,7 +8168,7 @@ ITERM_WEAKLY_REFERENCEABLE
}
 
- (NSString *)currentLocalWorkingDirectory {
if (_lastDirectoryIsRemote) {
if (_lastDirectoryIsRemote || _lastDirectory == nil) {
// Ask the kernel what the child's process's working directory is.
return [_shell getWorkingDirectory];
} else {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment