Unnamed repository; edit this file 'description' to name the repository.
fix: Make code-action popup auto close like other popups (#13832)
CalebLarsen 8 months ago
parent 974ac9e · commit c3c4895
-rw-r--r--helix-term/src/commands/lsp.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs
index a6d4b424..ac9dd6e2 100644
--- a/helix-term/src/commands/lsp.rs
+++ b/helix-term/src/commands/lsp.rs
@@ -807,7 +807,9 @@ pub fn code_action(cx: &mut Context) {
});
picker.move_down(); // pre-select the first item
- let popup = Popup::new("code-action", picker).with_scrollbar(false);
+ let popup = Popup::new("code-action", picker)
+ .with_scrollbar(false)
+ .auto_close(true);
compositor.replace_or_push("code-action", popup);
};