summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-01-31 00:27:44 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-01-31 00:28:00 +0100
commitb2457005b1b1e6f837e880dea2ec9e1681414905 (patch)
treee4318c550e1ed9556cdff3cfccdc18369ee89e5f
parentba649bfc1e5772d14b67058cf8491be1098d2b12 (diff)
corfu--move-prefix-candidates-to-front: Respect completion-ignore-case
See #113
-rw-r--r--corfu.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/corfu.el b/corfu.el
index 871b06f..6463c51 100644
--- a/corfu.el
+++ b/corfu.el
@@ -551,9 +551,11 @@ A scroll bar is displayed from LO to LO+BAR."
"Move CANDIDATES which match prefix of FIELD to the beginning."
(let* ((word (replace-regexp-in-string " .*" "" field))
(len (length word)))
- (corfu--partition! candidates
- (and (>= (length it) len)
- (eq t (compare-strings word 0 len it 0 len))))))
+ (corfu--partition!
+ candidates
+ (and (>= (length it) len)
+ (eq t (compare-strings word 0 len it 0 len
+ completion-ignore-case))))))
(defun corfu--filter-files (files)
"Filter FILES by `completion-ignored-extensions'."