diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2022-04-01 16:40:02 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2022-04-01 16:50:02 +0200 |
| commit | 761d9f55ab4ba68be6240c61a6dffae1c7cdc9a2 (patch) | |
| tree | 17628b1762fbb0c88062345a97573ee740067c0a /README.org | |
| parent | c8e6607c90a89ff19062cd37afc17e8bbb86aba3 (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.org | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
