diff options
Diffstat (limited to 'core/look.zig')
| -rw-r--r-- | core/look.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/look.zig b/core/look.zig index 170e5ea9..e075bbae 100644 --- a/core/look.zig +++ b/core/look.zig @@ -1032,7 +1032,7 @@ fn lookUnresolved(p: *Pardes, id: usize, pane: *Pane, trimmed: []const u8, text: if (filesystem.dotRelative(trimmed)) { const dir = Pardes.paneDir(pane); var said: Kind.Buf(4096 + 104) = .{}; - const gone = if (filesystem.localPath(dir)) |local| exec.kindOf(local) != .directory else false; + const gone = if (filesystem.localPath(dir)) |local| exec.kindOf(p.tape, local) != .directory else false; if (gone) return p.reportFailure(id, said.print("look: {s}: no such directory", .{dir[0..@min(dir.len, 4096)]})); // A file not there is a miss, as `x` and `/abs/x` are: said and // logged, the write answered with nothing. @@ -1569,7 +1569,7 @@ pub fn lookAt(p: *Pardes, id: usize, operand_raw: []const u8) void { .dir => |dir| { // A directory that is not there (the pane's own, gone): said, // ENOENT, no terminal made in it. - if (filesystem.localPath(dir)) |local| if (exec.kindOf(local) != .directory) { + if (filesystem.localPath(dir)) |local| if (exec.kindOf(p.tape, local) != .directory) { var said: Kind.Buf(4096 + 104) = .{}; return p.reportFailure(id, said.print("look: {s}: no such directory", .{dir[0..@min(dir.len, 4096)]})); }; |
