[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu e4814c4e68: corfu--in-region: Handle case when no
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu e4814c4e68: corfu--in-region: Handle case when no completion candidates are returned |
Date: |
Fri, 11 Mar 2022 12:57:27 -0500 (EST) |
branch: externals/corfu
commit e4814c4e68027cd55adf9537eac6e8549dd2a6ca
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
corfu--in-region: Handle case when no completion candidates are returned
---
corfu.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/corfu.el b/corfu.el
index 51065ae0f1..e834f0254c 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1133,10 +1133,11 @@ See `completion-in-region' for the arguments BEG, END,
TABLE, PRED."
(when exit
(funcall exit newstr
;; If completion is finished and cannot be further
completed,
- ; return 'finished. Otherwise return 'exact.
+ ;; return 'finished. Otherwise return 'exact.
(if (eq (try-completion (car candidates) table pred)
t)
- 'finished 'exact)))
- (if (not (and threshold (or (eq threshold t) (>= threshold
total))))
+ 'finished 'exact)))
+ (if (or (= total 0) (not threshold)
+ (and (not (eq threshold t)) (< threshold total)))
(corfu--setup)
(corfu--cycle-candidates total candidates (+ base beg) end)
;; Do not show Corfu when "trivially" cycling, i.e.,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/corfu e4814c4e68: corfu--in-region: Handle case when no completion candidates are returned,
ELPA Syncer <=