Fix link opening by resolving existing relative paths

pull/9942/head
Elad Kaplan 2025-12-17 15:13:47 +02:00
parent 50cb1bafd7
commit 67f9bb9e8a
1 changed files with 6 additions and 0 deletions

View File

@ -2048,6 +2048,12 @@ fn resolvePathForOpening(
};
const resolved = try std.fs.path.resolve(self.alloc, &.{ terminal_pwd, path });
std.fs.accessAbsolute(resolved, .{}) catch {
self.alloc.free(resolved);
return null;
};
return resolved;
}