From a18d16675c194203c00f46334fd7c22f46e7671a Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Mon, 2 Mar 2026 14:00:07 -0500 Subject: Add "" to corfu-map when magic-return is enabled This ensures the completion candidate is inserted when pressing the Enter key in GUI frames. Previously, only RET was bound, which could cause the key to fall through to the default minibuffer or evil-insert-state binding. --- modes/corfu/evil-collection-corfu.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modes/corfu/evil-collection-corfu.el b/modes/corfu/evil-collection-corfu.el index 378874a..f70dedc 100644 --- a/modes/corfu/evil-collection-corfu.el +++ b/modes/corfu/evil-collection-corfu.el @@ -126,6 +126,9 @@ This key theme variable may be refactored in the future so use with caution." "If we made a selection during `corfu' completion, select it.") ;; FIXME: Not sure why we need to use `define-key' here instead of ;; `evil-collection-define-key';. + (when (evil-collection-can-bind-key "") + (define-key corfu-map (kbd "") + evil-collection-corfu-insert-or-next-line)) (when (evil-collection-can-bind-key "RET") (define-key corfu-map (kbd "RET") evil-collection-corfu-insert-or-next-line))) -- cgit v1.0