summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2021-11-22 01:09:42 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2021-11-22 01:09:42 +0100
commit172feefac8f59bc29025502101c772b2d83435a6 (patch)
tree71500211333d491b4690ae7556322eec2fc1d757
parent0e7c110249ba5c5f9e41fb6fb1f2886089d075e6 (diff)
Bug fix
-rw-r--r--corfu.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index 1dffa1c..8130dec 100644
--- a/corfu.el
+++ b/corfu.el
@@ -522,7 +522,7 @@ A scroll bar is displayed from LO to LO+BAR."
(defun corfu--move-prefix-candidates-to-front (field candidates)
"Move CANDIDATES which match prefix of FIELD to the beginning."
- (let* ((word (car (split-string field)))
+ (let* ((word (replace-regexp-in-string " .*" "" field))
(len (length word)))
(corfu--partition! candidates
(and (>= (length it) len)