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

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

[elpa] 25/30: Handle nil company-common, in order not to bind it in test


From: Dmitry Gutov
Subject: [elpa] 25/30: Handle nil company-common, in order not to bind it in tests
Date: Tue, 14 Oct 2014 22:22:54 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit bec2600d4d77a06a2df0108a26c0ed3a2e1e226d
Author: Dmitry Gutov <address@hidden>
Date:   Wed Oct 8 08:23:32 2014 +0400

    Handle nil company-common, in order not to bind it in tests
---
 company.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/company.el b/company.el
index e607bed..dd4d7ea 100644
--- a/company.el
+++ b/company.el
@@ -2091,7 +2091,9 @@ If SHOW-VERSION is non-nil, show the version in the echo 
area."
 (defun company-fill-propertize (value annotation width selected left right)
   (let* ((margin (length left))
          (common (or (company-call-backend 'match value)
-                     (string-width company-common)))
+                     (if company-common
+                         (string-width company-common)
+                       0)))
          (ann-ralign company-tooltip-align-annotations)
          (value (company--clean-string value))
          (ann-truncate (< width



reply via email to

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