diff options
Diffstat (limited to 'core/views.zig')
| -rw-r--r-- | core/views.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/views.zig b/core/views.zig index 3b238258..79fff084 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 = 12 }); + const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 40, .rows = 15 }); defer p.deinit(); p.settings.jumps = .walk; var tmp = std.testing.tmpDir(.{}); @@ -638,10 +638,10 @@ test "a picker's band in a short column, dumped and loaded: its rows are the nev 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.text >= 2); + try testing.expect(at.head >= 2); const bytes = try dump.byteDump(p); defer gpa.free(bytes); - const q = try dump.load(gpa, .{ .tty_only = true, .cols = 40, .rows = 12 }, bytes, null); + const q = try dump.load(gpa, .{ .tty_only = true, .cols = 40, .rows = 15 }, 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); |
