summaryrefslogtreecommitdiff
path: root/src/edit_cmd.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit_cmd.zig')
-rw-r--r--src/edit_cmd.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/edit_cmd.zig b/src/edit_cmd.zig
index 83cc7e4f..c8473e99 100644
--- a/src/edit_cmd.zig
+++ b/src/edit_cmd.zig
@@ -98,7 +98,9 @@ const World = struct {
// A look opens it, or finds it open, where a look would; the
// keyboard stays where the Edit ran.
const was = p.active;
+ p.look_text = true;
look.lookAt(p, w.from, path);
+ p.look_text = false;
if (p.panes[was] != null) p.active = was;
for (p.panes, 0..) |slot, id| {
const pane = slot orelse continue;
@@ -516,7 +518,7 @@ test "Edit , | sort runs off the loop, through the session's shell in the file's
try testing.expectEqualStrings(@import("ninep/ctl.zig").e_after_edit, after.reply.ename);
try testing.expect(p.pipe.edit_run == null and !th.logHas(p, "before"));
}
- try testing.expectEqual(tree.E.INVAL, th.wr(p, @intFromEnum(tree.TopFile.exec), "Msg before\nEdit , | sort\n").errno());
+ try testing.expectEqual(tree.E.INVAL, th.wr(p, @backingInt(tree.TopFile.exec), "Msg before\nEdit , | sort\n").errno());
}
test "the held write asked again is parked again, then answered once, and a flush stops the Edit" {