From b43d748d673ef6d0a12f6c18ec464356be50e39d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 20 Sep 2025 13:34:48 -0400 Subject: [PATCH] fix(default): corfu-indexed-mode & RET interop This whole RET/TAB/DEL system needs rethinking, but it'll have to wait. Fix: #8120 --- modules/config/default/config.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 60e54beec..cf2128e67 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -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)