diff options
| author | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-23 12:37:46 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-23 12:37:46 +0000 |
| commit | c437b0681420882e57ae81d7a55ceb995ae72b88 (patch) | |
| tree | ebf480191da5a1d37c47c2a72e2a1da5f81e828b /src | |
| parent | cd45dbfa5dba4fafe976662a77eea30d74ea8590 (diff) | |
| download | shell-zig-c437b0681420882e57ae81d7a55ceb995ae72b88.tar.gz shell-zig-c437b0681420882e57ae81d7a55ceb995ae72b88.zip | |
fix?
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 }); |