From 50a4336b8ca02220147dee86962396c5923366d5 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 26 Nov 2025 12:06:56 +0100 Subject: [PATCH] fix: incorrect line offset in goto_line_and_column --- src/tui/editor.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 7e988b8..09217e3 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -5692,6 +5692,7 @@ pub const Editor = struct { dest.row -|= 1; dest.col -|= 1; dest = dest.from_pos(root, self.metrics); + dest.row += 1; dest.col += 1; if (have_sel) sel = sel.from_pos(root, self.metrics);