branch: externals/corfu
commit 160bd53db56f279d87377a8068aab754ec4b5d0c
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    corfu--capf-wrapper: Add comment
---
 corfu.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/corfu.el b/corfu.el
index 0b5cc91..c27e1c6 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1175,6 +1175,10 @@ Determines if the capf is applicable at the current 
position."
                      (pt (- (point) beg))
                      (pred (plist-get plist :predicate))
                      (md (completion-metadata (substring str 0 pt) table 
pred)))
+                ;; We use `completion-try-completion' to check if there are
+                ;; completions. The upstream `completion--capf-wrapper' uses
+                ;; `try-completion' which is incorrect since it only checks for
+                ;; prefix completions.
                 (completion-try-completion str table pred pt md)))
           (cons fun res)))))
 

Reply via email to