summaryrefslogtreecommitdiff
path: root/corfu.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-10-03 11:16:28 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2023-10-03 11:16:28 +0200
commit130098094c446d6f3c019b5d1804f7805317b177 (patch)
treeeb807329b381977112525cc52f8515ed1c8aab9a /corfu.el
parentb3fcca3b95afaff30baad07e95d7a367bed61474 (diff)
corfu-reset: Simplify
Diffstat (limited to 'corfu.el')
-rw-r--r--corfu.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/corfu.el b/corfu.el
index 326770f..d4a823b 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 ()