There was an error while loading. Please reload this page.
1 parent ecb4685 commit 84535aaCopy full SHA for 84535aa
1 file changed
src/completion.rs
@@ -179,6 +179,10 @@ impl CompletionNavigator {
179
event: &Event,
180
completion_keybinds: &CompletionKeybinds,
181
) -> Option<String> {
182
+ if self.state.listbox.len() == 0 {
183
+ return None;
184
+ }
185
+
186
// Move up.
187
if completion_keybinds.up.contains(event) {
188
self.state.listbox.backward();
@@ -270,6 +274,8 @@ pub fn start_completion_task(
270
274
guide_action_tx
271
275
.send(GuideAction::Show(GuideMessage::NoSuggestionFound(prefix)))
272
276
.await?;
277
+ shared_ctx.set_active_index(Index::QueryEditor).await;
278
+ completion.clear_session_state();
273
279
}
280
281
0 commit comments