summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-11-09 08:52:56 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-11-09 08:53:05 +0100
commit5fc23aa2839bf7392c83ae3a032d7a05c9cc2ff2 (patch)
treef3b894aaead6fea51f27b98538bd88efccf0a7ff
parent5982ad258f327dc4dd8618f35b8d4eb1372d0d89 (diff)
cape-wrap-choose: Add comment
-rw-r--r--cape.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/cape.el b/cape.el
index 7726be0..cfeb83a 100644
--- a/cape.el
+++ b/cape.el
@@ -1025,6 +1025,9 @@ Usually you want to add multiple non-exclusive Capfs to the variable
(pt (- (point) beg))
(pred (plist-get plist :predicate))
(md (completion-metadata (substring str 0 pt) table pred)))
+ ;; NOTE: Treat the Capfs always as non-exclusive. Return the first which
+ ;; returns a non-nil result. See the comment in `corfu--capf-wrapper'
+ ;; for further considerations.
(and (completion-try-completion str table pred pt md)
result))))))