summaryrefslogtreecommitdiff
path: root/core/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/panes.zig')
-rw-r--r--core/panes.zig19
1 files changed, 13 insertions, 6 deletions
diff --git a/core/panes.zig b/core/panes.zig
index 4b9aa7a7..16b1d388 100644
--- a/core/panes.zig
+++ b/core/panes.zig
@@ -141,7 +141,17 @@ pub const Pane = struct {
pub const Cwd = union(enum) { none, inherited: *Pane, owned: []u8 };
pub const Focus = enum { body, tag };
- pub const SessionView = struct { wrap: bool = true, layered: bool = true, body_h: u32 = 0, tagline_h: u32 = 0, rect_h: u16 = 0 };
+ pub const SessionView = struct {
+ wrap: bool = true,
+ layered: bool = true,
+ body_h: u32 = 0,
+ tagline_h: u32 = 0,
+ rect_h: u16 = 0,
+ /// The grid rows its tag out of rest draws over the top of its
+ /// body (Band.covered): what a state shows there is placed under
+ /// them (File.show).
+ covered: u16 = 0,
+ };
terminal: ?*Term.State = null,
/// Its terminal's, kept by the pane, which a rollback puts back, not by
/// the emulator, which none does (a speculation writes them): the grid
@@ -298,12 +308,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).
+ /// Out of rest its rows at rest: a head and a band past them are drawn
+ /// over the body (Band.covered), but under a picker's preview.
tag_rows: u16 = 1,
- /// Dumped as `tag_rows` is: what the next layout reads (floorRows takes
- /// the tag's own rows as their difference) is the last sync's, which a
- /// load cannot work out again where that sync held the band short.
- 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.