fix: incorrect line offset in goto_line_and_column

This commit is contained in:
CJ van den Berg 2025-11-26 12:06:56 +01:00
parent 74e7406034
commit 50a4336b8c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -5692,6 +5692,7 @@ pub const Editor = struct {
dest.row -|= 1; dest.row -|= 1;
dest.col -|= 1; dest.col -|= 1;
dest = dest.from_pos(root, self.metrics); dest = dest.from_pos(root, self.metrics);
dest.row += 1;
dest.col += 1; dest.col += 1;
if (have_sel) if (have_sel)
sel = sel.from_pos(root, self.metrics); sel = sel.from_pos(root, self.metrics);