summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2021-11-12 13:20:08 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2021-11-12 13:29:43 +0100
commit730aa01abb8a3463f9403030cbb90f1b1395a5b8 (patch)
tree47f37b55025d9bc320165ef30b854fbe5b44c0c1
parentc16e89f38d950d2517ffcf17c15787293fc14e3b (diff)
Only catch errors
-rw-r--r--corfu.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/corfu.el b/corfu.el
index c728d83..24be468 100644
--- a/corfu.el
+++ b/corfu.el
@@ -710,8 +710,8 @@ A scroll bar is displayed from LO to LO+BAR."
(when (and continue (not (equal corfu--input (cons str pt))))
(corfu--update-candidates str pt table pred)
nil)
- (t (corfu-quit)
- (message "Corfu completion error: %s" (error-message-string err)))))
+ (error (corfu-quit)
+ (message "Corfu completion error: %s" (error-message-string err)))))
;; 1) Initializing, no candidates => Show error message and quit
((and initializing (not corfu--candidates))
(funcall msg "No match")