summaryrefslogtreecommitdiff
path: root/src/fs.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs.zig')
-rw-r--r--src/fs.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs.zig b/src/fs.zig
index d79b8cb3..835b191a 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -663,7 +663,7 @@ test "virtual body writes can read their input from the same pane" {
try std.testing.expectEqualStrings("same pane contents\n", pane.file.?.content);
// The truncation and the write are one undo step.
try std.testing.expectEqual(@as(usize, 1), pane.file.?.history.journal.done);
- const events = &p.panes[p.active].?.fs.events;
+ const events = &p.panes[p.view().active].?.fs.events;
try std.testing.expect(std.mem.startsWith(u8, events.peek().?, "ED"));
events.pop();
try std.testing.expect(std.mem.startsWith(u8, events.peek().?, "EI"));