summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-04-01 16:40:02 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2022-04-01 16:50:02 +0200
commit761d9f55ab4ba68be6240c61a6dffae1c7cdc9a2 (patch)
tree17628b1762fbb0c88062345a97573ee740067c0a /README.org
parentc8e6607c90a89ff19062cd37afc17e8bbb86aba3 (diff)
corfu-insert: Do not insert first candidate if no candidate is selected (Fix #152)
This special behavior of corfu-insert occurred with corfu-preselect-first set to nil. The behavior was a remnant from before the introduction of the corfu-preselect-first customization option. Since corfu-preselect-first has been introduced a long time ago and I haven't heard complaints about it, let's now remove the special behavior of corfu-insert. This change simplifies the corfu--insert function slightly and makes the behavior of corfu-insert more consistent with other Corfu behavior. If the new behavior conflicts with your workflow, please let me know and we can look into possible workarounds. Feedback on this issue is welcome.
Diffstat (limited to 'README.org')
-rw-r--r--README.org2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.org b/README.org
index c3be759..cea9de1 100644
--- a/README.org
+++ b/README.org
@@ -223,7 +223,7 @@ define the command ~corfu-insert-and-send~ which performs the two steps at once.
(cond
((and (derived-mode-p 'eshell-mode) (fboundp 'eshell-send-input))
(eshell-send-input))
- ((derived-mode-p 'comint-mode)
+ ((and (derived-mode-p 'comint-mode) (fboundp 'comint-send-input))
(comint-send-input))))
(define-key corfu-map "\r" #'+corfu-insert-and-send)