summaryrefslogtreecommitdiff
path: root/src/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/panes.zig')
-rw-r--r--src/panes.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/panes.zig b/src/panes.zig
index 3cd66eb7..356f4913 100644
--- a/src/panes.zig
+++ b/src/panes.zig
@@ -125,6 +125,10 @@ pub const Pane = struct {
/// 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.
tag_rows: u16 = 1,
+ /// 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.
+ tag_top: u16 = 0,
cwd: Cwd = .none,
hscroll: i32 = 0,
// Visible rows map to source lines and raw/display column origins.