Fix link opening by resolving existing relative paths
parent
50cb1bafd7
commit
67f9bb9e8a
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue