From 172feefac8f59bc29025502101c772b2d83435a6 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Mon, 22 Nov 2021 01:09:42 +0100 Subject: Bug fix --- corfu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.0