diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2026-01-05 13:01:06 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2026-01-05 13:01:06 +0100 |
| commit | a86c73f69275ef31472c3c2e89930e8500e247f8 (patch) | |
| tree | 123b0271e61bca158d2beb217870af019bf81509 /corfu.el | |
| parent | 772e66c89f6e842e7884d4cb4a689c78869bd928 (diff) | |
Ensure that corfu--auto-post-command is called after corfu--post-command
Diffstat (limited to 'corfu.el')
| -rw-r--r-- | corfu.el | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -923,9 +923,7 @@ the stack trace is shown in the *Messages* buffer." (lambda () (if (corfu--continue-p) (corfu--exhibit) - (corfu-quit)) - (when corfu-auto - (corfu--auto-post-command))))) + (corfu-quit))))) (defun corfu--goto (index) "Go to candidate with INDEX." @@ -1457,7 +1455,7 @@ Quit if no candidate is selected." :group 'corfu :keymap corfu-mode-map (cond (corfu-mode - (and corfu-auto (add-hook 'post-command-hook #'corfu--auto-post-command nil 'local)) + (and corfu-auto (add-hook 'post-command-hook #'corfu--auto-post-command 100 'local)) (setq-local completion-in-region-function #'corfu--in-region)) (t (remove-hook 'post-command-hook #'corfu--auto-post-command 'local) |
