summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-07-10 12:00:13 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2024-07-10 12:00:13 +0200
commitc1d75d3cd18d770f869b5e3317c437a1557711ce (patch)
tree0ac64a7306a20255370f5bbfbd6c49766add9dd3
parent062e4f08d63232c31cccde5055124b8e473cf455 (diff)
Update comment
-rw-r--r--corfu.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index 5da53f7..51b03b8 100644
--- a/corfu.el
+++ b/corfu.el
@@ -716,7 +716,9 @@ FRAME is the existing frame."
(defun corfu--metadata-get (prop)
"Return PROP from completion metadata."
- ;; Marginalia are too heavy for Corfu. Use `completion-metadata-get' without advices.
+ ;; Marginalia and various icon packages advise `completion-metadata-get' to
+ ;; inject their annotations, but are meant only for minibuffer completion.
+ ;; Therefore call `completion-metadata-get' without advices here.
(let ((completion-extra-properties (nth 4 completion-in-region--data)))
(funcall (advice--cd*r (symbol-function (compat-function completion-metadata-get)))
corfu--metadata prop)))