From 2296930f4d2315b0672a79ea975c9bb408bbfb01 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 3 Feb 2026 15:15:58 +0100 Subject: [PATCH] fix: re-trigger completion if we run out of suggestion matches --- src/tui/mode/overlay/completion_dropdown.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tui/mode/overlay/completion_dropdown.zig b/src/tui/mode/overlay/completion_dropdown.zig index 7c9592a..7415c9d 100644 --- a/src/tui/mode/overlay/completion_dropdown.zig +++ b/src/tui/mode/overlay/completion_dropdown.zig @@ -151,6 +151,9 @@ fn maybe_update_query(self: *Type, cursor: Buffer.Cursor) error{OutOfMemory}!voi if (!std.mem.eql(u8, query, last)) try update_query_text(self, cursor); } else try update_query_text(self, cursor); + + if (self.match_count == 0) + tp.self_pid().send(.{ "cmd", "completion" }) catch |e| self.logger.err(module_name, e); } fn update_query_text(self: *Type, cursor: ed.Cursor) error{OutOfMemory}!void {