summaryrefslogtreecommitdiff
path: root/core/edit.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/edit.zig')
-rw-r--r--core/edit.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/edit.zig b/core/edit.zig
index a475fac2..f3a87e57 100644
--- a/core/edit.zig
+++ b/core/edit.zig
@@ -241,7 +241,7 @@ pub fn capturePointerSelection(p: *Pardes, pane: *Pane, slot: usize) !void {
const left: i32 = if (cols.first) @max(cols.lo, prefix) else prefix;
const right: i32 = cols.hi orelse std.math.maxInt(i32) / 2;
var source = pane.wrapAt(p.settings.tab, visible);
- if (raw) source = .{ .line = @as(i32, @intCast(panes.Term.grid(pane.terminal).offset)) + visible, .at = 0 };
+ if (raw) source = .{ .line = @as(i32, @intCast(pane.termTop())) + visible, .at = 0 };
const line = if (raw) modal.lineSlice(body, @intCast(visible)) else pointerSourceLine(pane, terminal_lines, source.line);
var next = pane.wrapAt(p.settings.tab, visible + 1);
if (raw) next = .{ .line = source.line + 1, .at = 0 };