emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/company 5c84da8: Fix another test


From: ELPA Syncer
Subject: [elpa] externals/company 5c84da8: Fix another test
Date: Sun, 26 Sep 2021 20:57:08 -0400 (EDT)

branch: externals/company
commit 5c84da83e7b8289170d811ac164e10a4d548962c
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@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

[Prev in Thread] Current Thread [Next in Thread]