diff options
Diffstat (limited to 'core/edit_cmd.zig')
| -rw-r--r-- | core/edit_cmd.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/edit_cmd.zig b/core/edit_cmd.zig index 6cd7788d..a87fdfa2 100644 --- a/core/edit_cmd.zig +++ b/core/edit_cmd.zig @@ -177,7 +177,7 @@ pub fn run(p: *Pardes, id: usize, command: []const u8) void { var world: World = .{ .p = p, .from = id, .arena = arena }; var why: sam.Why = .{}; var text: pardes.Kind.Buf(260) = .{}; - const res = sam.run(arena, files.items, cur, command, .{ .ctx = &world, .check = World.check, .open = World.open, .read = World.read, .refuseGet = World.refuseGet }, &why) catch |err| switch (err) { + const res = sam.run(arena, files.items, cur, command, .{ .ctx = &world, .check = World.check, .open = World.open, .read = World.read, .refuseGet = World.refuseGet, .home = p.sessionHome() }, &why) catch |err| switch (err) { error.Edit => return p.reportFailure(id, text.print("Edit: {s}", .{why.text()})), error.OutOfMemory => return p.reportError(id, "Edit", err), }; |
