summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2021-11-18 21:57:54 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2021-11-18 21:57:54 +0100
commit9655df15f921058a997dad4b36ae726691e17c2c (patch)
tree02cfa23456ff7940b92c3be870d6e7682b694cd7
parent9b80342b6e68a12645199ed2b52f80a3c53f47a4 (diff)
corfu--restore-on-next-command: Check for corfu-quit and corfu-reset
-rw-r--r--corfu.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index 574e9b2..b925c7e 100644
--- a/corfu.el
+++ b/corfu.el
@@ -857,7 +857,7 @@ A scroll bar is displayed from LO to LO+BAR."
(restore (make-symbol "corfu--restore")))
(fset restore
(lambda ()
- (when (eq this-command #'corfu-quit)
+ (when (memq this-command '(corfu-quit corfu-reset))
(setq this-command #'ignore))
(remove-hook 'pre-command-hook restore)
(setq other-window-scroll-buffer other)