summaryrefslogtreecommitdiff
path: root/core/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/config.zig')
-rw-r--r--core/config.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/config.zig b/core/config.zig
index e9225c53..324102b5 100644
--- a/core/config.zig
+++ b/core/config.zig
@@ -1656,7 +1656,11 @@ test "Space-k is unbound while Exit, Kill and other k chords remain available" {
while (p.nextEffect()) |_| {}
p.update(.{ .key = .{ .cp = ' ' } });
try std.testing.expect(p.view().prefix == .leader);
+ // A key SPC has no child for is struck, the level kept (walk UI); Esc
+ // leaves it.
p.update(.{ .key = .{ .cp = 'k' } });
+ try std.testing.expect(p.view().prefix == .leader and p.view().tag_state.miss == 'k' and !p.quit);
+ p.update(.{ .key = .{ .cp = Key.escape } });
try std.testing.expect(p.view().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);