summaryrefslogtreecommitdiff
path: root/core/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/panes.zig')
-rw-r--r--core/panes.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/panes.zig b/core/panes.zig
index 8939bd05..20feb0b3 100644
--- a/core/panes.zig
+++ b/core/panes.zig
@@ -31,7 +31,7 @@ pub const Pane = struct {
/// it (views.zig). (The 9P server's part of `fs` says so in its type.)
pub const replica = .{
.local = .{ "pv", "pv_known" },
- .derived = .{ "wrap_line", "wrap_col", "wrap_pad", "wrap_n", "body_wrapped", "context_rows", "body_rows", "body_visible_rows", "context_row_limit", "geometry_key", "geometry_len", "top_skip", "notices", "pan" },
+ .derived = .{ "band_rows", "wrap_line", "wrap_col", "wrap_pad", "wrap_n", "body_wrapped", "context_rows", "body_rows", "body_visible_rows", "context_row_limit", "geometry_key", "geometry_len", "top_skip", "notices", "pan" },
.len = .{ .{ "msg", "msg_len" }, .{ "msg_older", "msg_older_len" }, .{ "question", "question_len" }, .{ "shell_tail", "shell_tail_len" }, .{ "sel_snap", "nsel_snap" } },
// A picture's memory is its own allocator's (a dump loaded makes
// it there).
@@ -288,7 +288,9 @@ pub const Pane = struct {
/// Rows the tag takes on screen: one per line of it, as many as the pane
/// has room for with a body row to spare. Set with the geometry in sync.
/// Pointer rows count from the tag's first, so a body starts at this one.
+ /// Its last `band_rows` are the band unrolled under its text (Band.zig).
tag_rows: u16 = 1,
+ band_rows: u16 = 0,
/// The tag's first line on screen. A tag with more lines than rows
/// scrolls to keep its caret in view while it has the keyboard; pointer
/// rows count from this line, not the tag's first.