branch: externals/company
commit 5c84da83e7b8289170d811ac164e10a4d548962c
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: Dmitry Gutov <dgu...@yandex.ru>

    Fix another test
---
 company.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 085e208..af657ad 100644
--- a/company.el
+++ b/company.el
@@ -2975,10 +2975,11 @@ If SHOW-VERSION is non-nil, show the version in the 
echo area."
 (defun company--common-or-matches (value)
   (let ((matches (company-call-backend 'match value)))
     (when (and matches
+               company-common
                (listp matches)
                (= 1 (length matches))
                (= 0 (caar matches))
-               (> (string-width  company-common) (cdar matches)))
+               (> (string-width company-common) (cdar matches)))
       (setq matches nil))
     (when (integerp matches)
       (setq matches `((0 . ,matches))))

Reply via email to