summaryrefslogtreecommitdiff
path: root/core/views.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/views.zig')
-rw-r--r--core/views.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/views.zig b/core/views.zig
index 79fff084..75e2e5d9 100644
--- a/core/views.zig
+++ b/core/views.zig
@@ -615,7 +615,7 @@ test "a view not live with its band open, dumped and loaded, draws before its ne
test "a picker's band in a short column, dumped and loaded: its rows are the never-loaded session's, and so is the next layout" {
const gpa = std.testing.allocator;
const dump = @import("dump.zig");
- const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 40, .rows = 15 });
+ const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 40, .rows = 14 });
defer p.deinit();
p.settings.jumps = .walk;
var tmp = std.testing.tmpDir(.{});
@@ -631,17 +631,17 @@ test "a picker's band in a short column, dumped and loaded: its rows are the nev
const low = p.view().active;
p.view().active = host;
p.sync();
- // Find in the pane itself (it reads): its head and its act row over
- // the band, which the short column holds under what it wants.
+ // Find in the pane itself (it reads): its head over the band, which
+ // the short column holds under what it wants.
p.stream.engine = .walk;
pardes.Pick.open(p, host, .find, "", "", "");
p.sync();
const at = pardes.Band.covered(p, pane, host);
try testing.expect(at.band > 0 and at.band < pardes.Band.takes(p, host));
- try testing.expect(at.head >= 2);
+ try testing.expect(at.head == 1);
const bytes = try dump.byteDump(p);
defer gpa.free(bytes);
- const q = try dump.load(gpa, .{ .tty_only = true, .cols = 40, .rows = 15 }, bytes, null);
+ const q = try dump.load(gpa, .{ .tty_only = true, .cols = 40, .rows = 14 }, bytes, null);
defer q.deinit();
try testing.expectEqual(pane.view.covered, q.panes[host].?.view.covered);
try testing.expectEqual(pane.tag_rows, q.panes[host].?.tag_rows);