mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-06 18:06:33 +00:00
fix: handle relative paths in CLI
This commit is contained in:
@@ -1687,9 +1687,7 @@ pub fn loadIter(
|
||||
}
|
||||
|
||||
pub fn loadFile(self: *Config, alloc: Allocator, path: []const u8) !void {
|
||||
const cwd = std.fs.cwd();
|
||||
|
||||
var file = try cwd.openFile(path, .{});
|
||||
var file = try std.fs.cwd().openFile(path, .{});
|
||||
defer file.close();
|
||||
|
||||
std.log.info("reading configuration file path={s}", .{path});
|
||||
|
Reference in New Issue
Block a user