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

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

[ELPA-diffs] [elpa] 07/12: company--create-lines: only reserve width for


From: Dmitry Gutov
Subject: [ELPA-diffs] [elpa] 07/12: company--create-lines: only reserve width for numbers when they'll be displayed
Date: Sat, 25 Jan 2014 11:35:48 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit 209d36e7ac55afc109e2a57d9b6c89aa5336186d
Author: Dmitry Gutov <address@hidden>
Date:   Sat Jan 25 10:18:11 2014 +0200

    company--create-lines: only reserve width for numbers when they'll be 
displayed
---
 company.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/company.el b/company.el
index 927c998..8a16100 100644
--- a/company.el
+++ b/company.el
@@ -1869,7 +1869,8 @@ Example: \(company-begin-with '\(\"foo\" \"foobar\" 
\"foobarbaz\"\)\)"
     (dotimes (_ len)
       (setq width (max (length (pop lines-copy)) width)))
     (setq width (min window-width
-                     (if company-show-numbers
+                     (if (and company-show-numbers
+                              (< company-tooltip-offset 10))
                          (+ 2 width)
                        width)))
     (setq lines-copy lines)



reply via email to

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