summaryrefslogtreecommitdiff
path: root/core/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/panes.zig')
-rw-r--r--core/panes.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/panes.zig b/core/panes.zig
index b238992a..08d91df5 100644
--- a/core/panes.zig
+++ b/core/panes.zig
@@ -309,10 +309,11 @@ pub const Pane = struct {
wrap_n: u16 = 0,
/// A row map also exists for sticky headers when soft wrapping is off.
body_wrapped: bool = false,
- /// Where the geometry's walk found the view's top inside its line's
- /// rows (File.Top): the row it is and the bytes of the line before it;
- /// a frame's text starts there with no walk again.
- top_skip: struct { row: u32 = 0, at: usize = 0 } = .{},
+ /// Where the view's top is inside its line's rows (File.Top) for the
+ /// geometry of `key`: the row it is and the bytes of the line before
+ /// it, found by the geometry's walk or by the step that put the top
+ /// there; a frame's text starts there with no walk again.
+ top_skip: struct { key: u64 = 0, row: u32 = 0, at: usize = 0 } = .{},
context_rows: u16 = 0,
body_rows: u16 = 0,
body_visible_rows: u16 = 0,
@@ -668,7 +669,6 @@ pub const Pane = struct {
}
pub fn ensureCursorVisible(pane: *Pane, tab: u16) void {
- File.geometry(tab, pane);
if (pane.file != null) File.show(tab, pane, pane.body.cur_row, pane.body.cur_col, config.scroll_off) else {
// A terminal's rows are its lines.
const off = pane.scroll();