From d298e1ed4c9125031b26b113d0e20bca430162cd Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 3 Feb 2026 15:17:24 +0100 Subject: [PATCH] fix: don't cancel completions in update_completion This is not needed anymore. --- src/tui/mode/overlay/completion_dropdown.zig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tui/mode/overlay/completion_dropdown.zig b/src/tui/mode/overlay/completion_dropdown.zig index 7415c9d..8d6ca28 100644 --- a/src/tui/mode/overlay/completion_dropdown.zig +++ b/src/tui/mode/overlay/completion_dropdown.zig @@ -375,11 +375,6 @@ const cmds = struct { const Result = command.Result; pub fn update_completion(self: *Type, _: Ctx) Result { - if (self.value.editor.completions.data.items.len == 0) { - tp.self_pid().send(.{ "cmd", "palette_menu_cancel" }) catch |e| self.logger.err(module_name, e); - return; - } - clear_entries(self); self.longest_hint = try load_entries(self); try update_query_text(self, self.value.editor.get_primary().cursor);