summaryrefslogtreecommitdiff
path: root/core/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/root.zig')
-rw-r--r--core/root.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/root.zig b/core/root.zig
index 2e8fe1dc..69ec3ded 100644
--- a/core/root.zig
+++ b/core/root.zig
@@ -221,7 +221,7 @@ pub const test_api = if (@import("builtin").is_test) struct {
var n: usize = 0;
while (p.nextEffect()) |effect| switch (effect) {
.write => |w| {
- if (pane != null and w.pane != pane.?) continue;
+ if (pane != null and w.pane.index() != pane.?) continue;
const b = w.bytes.slice();
if (n + b.len > buf.len) break;
@memcpy(buf[n..][0..b.len], b);