emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu 160bd53 2/2: corfu--capf-wrapper: Add comment


From: ELPA Syncer
Subject: [elpa] externals/corfu 160bd53 2/2: corfu--capf-wrapper: Add comment
Date: Mon, 13 Dec 2021 06:57:23 -0500 (EST)

branch: externals/corfu
commit 160bd53db56f279d87377a8068aab754ec4b5d0c
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@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

[Prev in Thread] Current Thread [Next in Thread]