summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-23 12:37:46 +0000
committerLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-23 12:37:46 +0000
commitc437b0681420882e57ae81d7a55ceb995ae72b88 (patch)
treeebf480191da5a1d37c47c2a72e2a1da5f81e828b /src
parentcd45dbfa5dba4fafe976662a77eea30d74ea8590 (diff)
downloadshell-zig-c437b0681420882e57ae81d7a55ceb995ae72b88.tar.gz
shell-zig-c437b0681420882e57ae81d7a55ceb995ae72b88.zip
fix?
Diffstat (limited to 'src')
-rw-r--r--src/main.zig2
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 });