From cbe656fe44f73022f95682084c7a726e520866d7 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 9 Apr 2024 21:51:17 +0200 Subject: [PATCH] fix: use 1 based offsets in get_mru_position --- src/Project.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Project.zig b/src/Project.zig index 7d39f8c..c2ed114 100644 --- a/src/Project.zig +++ b/src/Project.zig @@ -129,7 +129,7 @@ pub fn get_mru_position(self: *Self, from: tp.pid_ref, file_path: []const u8) !v for (self.files.items) |*file| { if (!std.mem.eql(u8, file.path, file_path)) continue; if (file.row != 0) - try from.send(.{ "cmd", "goto", .{ file.row, file.col } }); + try from.send(.{ "cmd", "goto", .{ file.row + 1, file.col + 1 } }); return; } }