summaryrefslogtreecommitdiff
path: root/src/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/panes.zig')
-rw-r--r--src/panes.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/panes.zig b/src/panes.zig
index 720f655f..6887008c 100644
--- a/src/panes.zig
+++ b/src/panes.zig
@@ -25,7 +25,7 @@ pub const EditText = struct { text: []u8, row0: i32 };
pub const Pane = struct {
/// One mouse selection (block-shaped), per button. c/r are text-area relative;
- /// r counts from the tag row (body starts at BOX_H).
+ /// r counts from the tag's first row (the body starts at Pane.tag_rows).
pub const Sel = struct {
state: enum { none, dragging, done } = .none,
source_id: u64 = 0,
@@ -121,6 +121,10 @@ pub const Pane = struct {
focus: Focus = .body,
/// Display columns hidden to reveal the tag caret; tag addresses stay whole.
tag_scroll: u16 = 0,
+ /// 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.
+ tag_rows: u16 = 1,
cwd: Cwd = .none,
hscroll: i32 = 0,
// Visible rows map to source lines and raw/display column origins.