summaryrefslogtreecommitdiff
path: root/core/ninep
diff options
context:
space:
mode:
Diffstat (limited to 'core/ninep')
-rw-r--r--core/ninep/ctl.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/ninep/ctl.zig b/core/ninep/ctl.zig
index c7f22b9a..e47aec94 100644
--- a/core/ninep/ctl.zig
+++ b/core/ninep/ctl.zig
@@ -2388,7 +2388,9 @@ test "a file changed on disk under unsaved edits is not reloaded: it says so, ge
pardes.panes.File.changed(p, 0, "three\n");
try testing.expectEqualStrings("two\nmine\n", f.content);
try testing.expect(f.revision != f.saved_revision);
- try testing.expect(th.logHas(p, "changed on disk (get reloads it, Save overwrites it)"));
+ // ...and asks, in its tag (Messages.waiting), which /log hears.
+ try testing.expect(p.messages.waiting(p.panes[0].?) != null);
+ try testing.expect(th.logHas(p, "changed on disk\n"));
var want: [32]u8 = undefined;
try testing.expect(th.logHas(p, try std.fmt.bufPrint(&want, "changed {d}\n", .{serial})));
// Exit and get still ask about the edits.