[Top][All Lists]

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

[elpa] 24/30: company-fill-propertize: Use `string-width' on `company-co

From: Dmitry Gutov
Subject: [elpa] 24/30: company-fill-propertize: Use `string-width' on `company-common'
Date: Tue, 14 Oct 2014 22:22:54 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit c4a636ec50257cf79019fbfb1bef5c2b12c570cd
Author: Dmitry Gutov <address@hidden>
Date:   Wed Oct 8 08:18:04 2014 +0400

    company-fill-propertize: Use `string-width' on `company-common'
    It also might contain multiple-width chars.
 company.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/company.el b/company.el
index 473b652..e607bed 100644
--- a/company.el
+++ b/company.el
@@ -2091,7 +2091,7 @@ If SHOW-VERSION is non-nil, show the version in the echo 
 (defun company-fill-propertize (value annotation width selected left right)
   (let* ((margin (length left))
          (common (or (company-call-backend 'match value)
-                     (length company-common)))
+                     (string-width company-common)))
          (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]