diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2022-01-31 00:27:44 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2022-01-31 00:28:00 +0100 |
| commit | b2457005b1b1e6f837e880dea2ec9e1681414905 (patch) | |
| tree | e4318c550e1ed9556cdff3cfccdc18369ee89e5f | |
| parent | ba649bfc1e5772d14b67058cf8491be1098d2b12 (diff) | |
corfu--move-prefix-candidates-to-front: Respect completion-ignore-case
See #113
| -rw-r--r-- | corfu.el | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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'." |
