diff --git a/src/tui/mainview.zig b/src/tui/mainview.zig index 6cce2b3..530e8cf 100644 --- a/src/tui/mainview.zig +++ b/src/tui/mainview.zig @@ -879,8 +879,10 @@ const cmds = struct { tp.extract(&col), })) return error.InvalidAddDiagnosticArgument; file_path = project_manager.normalize_file_path(file_path); - if (self.get_active_editor()) |editor| if (std.mem.eql(u8, file_path, editor.file_path orelse "")) + if (self.get_active_editor()) |editor| if (std.mem.eql(u8, file_path, editor.file_path orelse "")) { try tui.open_overlay(@import("mode/overlay/completion_palette.zig").Type); + tui.need_render(); + }; } pub const add_completion_done_meta: Meta = .{ .arguments = &.{