summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-11-07 16:47:35 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-11-07 16:47:35 +0100
commit08c85928c3f0dfccb659cd3f26733095d16ab3a1 (patch)
tree54abda17bcd242b4459d2eb13ded7230b7a23467
parent4568d889525408ec862d70c00d8a3987195a5987 (diff)
Pass correct string to completion-metadata
-rw-r--r--corfu.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index 0868a81..6dde769 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.