From ef9ce154651f9aa177d65e18885e996aa602f841 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Sat, 22 Jan 2022 15:35:24 +0100 Subject: Handle completion-cycling-threshold=t --- corfu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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., -- cgit v1.0