From 30de4ddcc6e046888150359a16abdb0baa9a3f80 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Sat, 22 Feb 2025 22:20:11 +0100 Subject: [PATCH] fix: row & column 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 e9ce980..90c6770 100644 --- a/src/Project.zig +++ b/src/Project.zig @@ -418,7 +418,7 @@ fn update_mru_internal(self: *Self, file_path: []const u8, mtime: i128, row: usi pub fn get_mru_position(self: *Self, from: tp.pid_ref, file_path: []const u8) ClientError!void { for (self.files.items) |*file| { if (!std.mem.eql(u8, file.path, file_path)) continue; - from.send(.{ file.pos.row, file.pos.col }) catch return error.ClientFailed; + from.send(.{ file.pos.row + 1, file.pos.col + 1 }) catch return error.ClientFailed; return; } }