summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-01-22 15:35:24 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-01-22 15:35:24 +0100
commitef9ce154651f9aa177d65e18885e996aa602f841 (patch)
treecc1daef67fef62fe57ecfa20cd22dea5d25a7579
parent0e573166433c050b76d0598171205f21b1d54337 (diff)
Handle completion-cycling-threshold=t
-rw-r--r--corfu.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index db43dd3..afa91ea 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1088,7 +1088,7 @@ See `completion-in-region' for the arguments BEG, END, TABLE, PRED."
; return 'finished. Otherwise return 'exact.
(if (eq (try-completion (car candidates) table pred) t)
'finished 'exact)))
- (if (or (not threshold) (< threshold total))
+ (if (not (and threshold (or (eq threshold t) (>= threshold total))))
(corfu--setup)
(corfu--cycle-candidates total candidates (+ base beg) end)
;; Do not show Corfu when "trivially" cycling, i.e.,