summaryrefslogtreecommitdiff
path: root/core/keys.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/keys.zig')
-rw-r--r--core/keys.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/keys.zig b/core/keys.zig
index e9be2461..5baed695 100644
--- a/core/keys.zig
+++ b/core/keys.zig
@@ -1064,12 +1064,12 @@ test "s in a header selects in the header's own text" {
p.update(.{ .key = .{ .cp = 's' } });
try std.testing.expect(pane.prompt == .search and pane.prompt_for == .workspace);
// the prompt takes the keys while the header keeps the keyboard
- p.update(.{ .key = .{ .cp = 'c', .text = "col" } });
+ p.update(.{ .key = .{ .cp = 'i', .text = "i" } });
p.update(.{ .key = .{ .cp = Key.enter } });
try std.testing.expect(p.view().header != null and pane.prompt == .none);
var ranges: [Text.max_selections]modal.Selection = undefined;
const text = try edit.flatSurface(p.editor(), &p.global_tag);
const got = p.global_tag.ranges(text, 0, &ranges);
- try std.testing.expectEqual(@as(usize, 2), got.n); // Newcol, Joincol
+ try std.testing.expectEqual(@as(usize, 2), got.n); // Find, Exit
try std.testing.expectEqual(@as(u16, 0), pane.body.nsel);
}