Fix link opening by resolving existing relative paths

This commit is contained in:
Elad Kaplan
2025-12-17 15:13:47 +02:00
parent 50cb1bafd7
commit 67f9bb9e8a

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;
}