summaryrefslogtreecommitdiff
path: root/runtime/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/main.zig')
-rw-r--r--runtime/main.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/main.zig b/runtime/main.zig
index 11aceaeb..92821c8a 100644
--- a/runtime/main.zig
+++ b/runtime/main.zig
@@ -1370,7 +1370,7 @@ fn nativeMain(std_init: std.process.Init) !void {
}
// `pardes '~/x'`, quoted so the shell left it: home, as a look's.
var home_buf: [4096]u8 = undefined;
- const word = pardes.filesystem.expandHome(typed_word, &home_buf);
+ const word = pardes.filesystem.expandHome(&pardes.tape.none, typed_word, &home_buf);
const target = @import("core").look.parsePathLine(word);
// `@pN[:addr]` addresses a pane of this session: one it has is
// looked at, one it has not is refused, never a file of that name.
@@ -1388,14 +1388,14 @@ fn nativeMain(std_init: std.process.Init) !void {
}
var realbuf: [4096]u8 = undefined;
var newbuf: [4096]u8 = undefined;
- const found_path: ?[]const u8 = if (pardes.filesystem.isVirtual(target.path)) target.path else if (pardes.filesystem.resolveOs(target.path, &realbuf)) |r| r.path else null;
+ const found_path: ?[]const u8 = if (pardes.filesystem.isVirtual(target.path)) target.path else if (pardes.filesystem.resolveOs(&pardes.tape.none, target.path, &realbuf)) |r| r.path else null;
const path = found_path orelse named: {
// A name not there yet, as acme's B takes one: its directory
// resolved and the name kept, a pane made for it that Save
// creates the file from.
const base = std.Io.Dir.path.basename(target.path);
if (base.len == 0 or std.mem.eql(u8, base, ".") or std.mem.eql(u8, base, "..")) Refuse.with(init.io, word, error.NotAFileName);
- const dir = pardes.filesystem.resolveOs(std.Io.Dir.path.dirname(target.path) orelse ".", &realbuf) orelse {
+ const dir = pardes.filesystem.resolveOs(&pardes.tape.none, std.Io.Dir.path.dirname(target.path) orelse ".", &realbuf) orelse {
// Its directory not there either: the name made absolute as
// written, and the pane's Save makes the directories.
var cwd_buf: [4096]u8 = undefined;