branch: externals/corfu commit 130098094c446d6f3c019b5d1804f7805317b177 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
corfu-reset: Simplify --- corfu.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/corfu.el b/corfu.el index 326770fea8..d4a823bc7d 100644 --- a/corfu.el +++ b/corfu.el @@ -1146,9 +1146,8 @@ there hasn't been any input, then quit." (str (buffer-substring-no-properties beg end))) (cancel-change-group corfu--change-group) (activate-change-group (setq corfu--change-group (prepare-change-group))) - ;; Quit when resetting again or if input did not change. - (when (or (eq last-command #'corfu-reset) - (equal str (buffer-substring-no-properties beg end))) + ;; Quit when resetting, when input did not change. + (when (equal str (buffer-substring-no-properties beg end)) (corfu-quit))))) (defun corfu-insert-separator ()