Skip to content
Snippets Groups Projects
Commit 9857a315 authored by Jack Chen (chendo)'s avatar Jack Chen (chendo)
Browse files

Use absolute paths when changing directories

parent b002e2b6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2229,7 +2229,7 @@ static BOOL RectsEqual(NSRect* a, NSRect* b) {
workingDirectory:[self getWorkingDirectoryAtLine:y + 1]
lineNumber:nil];
if ([trouter isDirectory:fullPath]) {
[self _changeDirectory:url];
[self _changeDirectory:fullPath];
}
}
else {
Loading
Loading
@@ -5696,6 +5696,7 @@ static bool IsUrlChar(NSString* str)
}
 
- (void)_changeDirectory:(NSString *)path {
// TODO: Make this more efficient by calculating the shortest path to target folder
[[dataSource shellTask] writeTask:[[NSString stringWithFormat:@"cd \"%@\"; ls\n", path] dataUsingEncoding:[[dataSource session] encoding]]];
}
 
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