diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2024-01-20 09:32:49 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2024-01-20 09:32:49 +0100 |
| commit | 4c9f76c8bb932e3d27b5fb9eda09d334a70cbfb2 (patch) | |
| tree | 78423b9c173431e9c8f4b98e0bdb25699d099bc3 | |
| parent | f0f60de5e7f916358feda5f6509d139cbccf20f1 (diff) | |
README: Update `corfu-move-to-minibuffer' (Fix #416)
| -rw-r--r-- | README.org | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -471,10 +471,11 @@ The command ~corfu-move-to-minibuffer~ is defined here in terms of #+begin_src emacs-lisp (defun corfu-move-to-minibuffer () (interactive) - (when completion-in-region--data - (let ((completion-extra-properties (nth 4 completion-in-region--data)) - completion-cycle-threshold completion-cycling) - (apply #'consult-completion-in-region completion-in-region--data)))) + (pcase completion-in-region--data + (`(,beg ,end ,table ,pred . ,extras) + (let ((completion-extra-properties extras) + completion-cycle-threshold completion-cycling) + (consult-completion-in-region beg end table pred))))) (keymap-set corfu-map "M-m" #'corfu-move-to-minibuffer) (add-to-list 'corfu-continue-commands #'corfu-move-to-minibuffer) #+end_src |
