branch: master
commit 1646a101671eb1bc78667a49ea8eaa5ada027f8a
Author: Caibin Chen <[email protected]>
Commit: Caibin Chen <[email protected]>

    Always get candidates with prefix string in `company-diag`.
---
 company.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/company.el b/company.el
index cbe3781..f4355b3 100644
--- a/company.el
+++ b/company.el
@@ -2388,7 +2388,7 @@ If SHOW-VERSION is non-nil, show the version in the echo 
area."
          cc annotations)
     (when (or (stringp prefix) (consp prefix))
       (let ((company-backend backend))
-        (setq cc (company-call-backend 'candidates prefix)
+        (setq cc (company-call-backend 'candidates (company--prefix-str 
prefix))
               annotations
               (mapcar
                (lambda (c) (cons c (company-call-backend 'annotation c)))

Reply via email to