branch: externals/cape
commit 75b7cf7c76cc3fca2c0adb54323a6300fe16e1a3
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    cape-company-to-capf: Minor code cleanup
---
 cape.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/cape.el b/cape.el
index 278e2db44a..202292d975 100644
--- a/cape.el
+++ b/cape.el
@@ -845,10 +845,9 @@ again if the input prefix changed."
                  (lambda (input)
                    (let ((cands (cape--company-call backend 'candidates 
input)))
                      ;; The candidate string including text properties should 
be
-                     ;; restored in the :exit-function, if the UI does not
-                     ;; guarantee this itself.  Restoration is not necessary 
for
-                     ;; Corfu since the introduction of `corfu--exit-function'.
-                     (unless (and (bound-and-true-p corfu-mode) (fboundp 
'corfu--exit-function))
+                     ;; restored in the :exit-function, unless the UI 
guarantees
+                     ;; this itself, like Corfu.
+                     (unless (bound-and-true-p corfu-mode)
                        (setq restore-props cands))
                      (cons (apply-partially valid input) cands))))
                 :category backend

Reply via email to