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, 2 insertions, 2 deletions
diff --git a/src/edit_cmd.zig b/src/edit_cmd.zig
index 517f2e8d..99cac6ce 100644
--- a/src/edit_cmd.zig
+++ b/src/edit_cmd.zig
@@ -565,7 +565,7 @@ test "Edit's < | and > with a real shell: a command per address, > printed to +E
try testing.expectEqual(@as(usize, 3), p.pipe.edit_run.?.request.inputs.len);
try runReal(p);
try testing.expectEqualStrings("ONE TWO\nTHREE\n", p.panes[0].?.file.?.content);
- try testing.expectEqual(@as(usize, 1), p.panes[0].?.file.?.history.undo_len);
+ try testing.expectEqual(@as(usize, 1), p.panes[0].?.file.?.history.journal.done);
try testing.expectEqual(tree.Status.ok, th.wr(p, ctl, "Edit 2 < printf new\n").reply.status);
try runReal(p);
try testing.expectEqualStrings("ONE TWO\nnew", p.panes[0].?.file.?.content);
@@ -585,7 +585,7 @@ test "a failing command changes nothing and says why, its stderr in +Errors" {
p.fs.edit_hold = .{ .asker = @ptrCast(p), .slot = 0, .seq = 1, .tag = 2, .node = ctl, .handle = 0, .written = 1 };
try runReal(p);
try testing.expectEqualStrings("keep\n", p.panes[0].?.file.?.content);
- try testing.expectEqual(@as(usize, 0), p.panes[0].?.file.?.history.undo_len);
+ try testing.expectEqual(@as(usize, 0), p.panes[0].?.file.?.history.journal.done);
// The held write's answer is the failure, in its words.
try testing.expectEqualStrings("Edit: | echo boom >&2; exit 3: exit status 3", filesystem.EditHold.answer(&p.fs).ename);
const report = errorsText(p).?;