summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.zig b/src/config.zig
index 4b56cfa7..1c4e92a1 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -206,9 +206,9 @@ test "Space-k is unbound while Exit, Kill and other k chords remain available" {
pane.body.cur_row = 1;
while (p.nextEffect()) |_| {}
p.update(.{ .key = .{ .cp = ' ' } });
- try std.testing.expect(p.leader_on);
+ try std.testing.expect(p.prefix == .leader);
p.update(.{ .key = .{ .cp = 'k' } });
- try std.testing.expect(!p.leader_on and !p.quit);
+ try std.testing.expect(p.prefix != .leader and !p.quit);
try std.testing.expectEqual(@as(i32, 1), pane.body.cur_row);
while (p.nextEffect()) |effect| try std.testing.expect(effect != .quit);
p.update(.{ .key = .{ .cp = 'k' } });