branch: master
commit 67650dee565c57568d22065041326a58eb0f891d
Merge: a78f7d8 1646a10
Author: Dmitry Gutov <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #769 from tigersoldier/master
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)))