branch: externals/corfu
commit 08c85928c3f0dfccb659cd3f26733095d16ab3a1
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Pass correct string to completion-metadata
---
 corfu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corfu.el b/corfu.el
index 0868a81220..6dde7697bd 100644
--- a/corfu.el
+++ b/corfu.el
@@ -984,7 +984,7 @@ See `completion-in-region' for the arguments BEG, END, 
TABLE, PRED."
            (if (or (eq corfu-on-exact-match 'show)
                    (consp (completion-try-completion
                            newstr table pred newpt
-                           (completion-metadata newstr table pred))))
+                           (completion-metadata (substring newstr 0 newpt) 
table pred))))
                (corfu--setup beg end table pred)
              (corfu--exit-function (car cands) 'finished nil)))
           ;; Too many candidates for cycling -> Setup popup.

Reply via email to