summaryrefslogtreecommitdiff
path: root/test/behaviour/keys.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behaviour/keys.zig')
-rw-r--r--test/behaviour/keys.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/behaviour/keys.zig b/test/behaviour/keys.zig
index 9eb33ac2..2274e73a 100644
--- a/test/behaviour/keys.zig
+++ b/test/behaviour/keys.zig
@@ -414,11 +414,12 @@ test "keys: zz and zc put the cursor's line in the middle row of an odd view, as
for (&lines, 0..) |*l, i| _ = try std.fmt.bufPrint(l, "l{d:0>2}\n", .{i});
var s = try Session.initFile(std.testing.allocator, std.mem.asBytes(&lines));
defer s.deinit();
- s.resize(80, 25);
+ s.resize(80, 24);
for ([_][]const u8{ "15jzz", "ztzc" }) |keys| {
try s.keys(keys);
- // 80x25 gives the pane 21 rows (the notice row under it): l05 to
- // l25, l15 the eleventh
+ // 80x24 gives the pane 21 rows (the window row and its tag above
+ // them, the notice row under them; one column, no column row):
+ // l05 to l25, l15 the eleventh
const top = (try s.where("l05"))[1];
try std.testing.expectEqual(top + 10, (try s.where("l15"))[1]);
try std.testing.expectEqual(top + 20, (try s.where("l25"))[1]);