diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index 21a5278..328207f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -335,7 +335,7 @@ fn readCommand(allocator: std.mem.Allocator, history: std.ArrayList([]const u8)) matches.deinit(allocator); } - var dir_opt = if (std.mem.startsWith(u8, dir_path, "/")) + const dir_opt = if (std.mem.startsWith(u8, dir_path, "/")) std.fs.openDirAbsolute(dir_path, .{ .iterate = true }) else std.fs.cwd().openDir(dir_path, .{ .iterate = true }); |