fix(default): corfu-indexed-mode & RET interop

This whole RET/TAB/DEL system needs rethinking, but it'll have to wait.

Fix: #8120
This commit is contained in:
Henrik Lissner
2025-09-20 13:34:48 -04:00
parent 2a65250743
commit b43d748d67

View File

@@ -520,7 +520,9 @@ Continues comments if executed from a commented line."
:filter ,(lambda (cmd)
(pcase +corfu-want-ret-to-confirm
('nil (corfu-quit) nil)
('t (if (>= corfu--index 0) cmd))
('t (if (or (>= corfu--index 0)
(and prefix-arg (bound-and-true-p corfu-indexed-mode)))
cmd))
('both (funcall-interactively cmd) nil)
('minibuffer
(if (minibufferp nil t)