From db0bf4571ed6d6b8d270fa3563dd0106b0fc6296 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Sun, 23 Feb 2025 21:54:28 +0100 Subject: [PATCH] fix: get_mru_position should not hang if file not found in project --- src/Project.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Project.zig b/src/Project.zig index 90c6770..83d5517 100644 --- a/src/Project.zig +++ b/src/Project.zig @@ -421,6 +421,7 @@ pub fn get_mru_position(self: *Self, from: tp.pid_ref, file_path: []const u8) Cl from.send(.{ file.pos.row + 1, file.pos.col + 1 }) catch return error.ClientFailed; return; } + from.send(.{"none"}) catch return error.ClientFailed; } pub fn request_tasks(self: *Self, from: tp.pid_ref) ClientError!void {