[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)
- [ELPA-diffs] [elpa] branch master updated (324e000 -> c87035c), Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 06/12: company-select-mouse: update for when scrollbar is used, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 03/12: company--numbered-line: span tooltip face to the margins, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 01/12: Fix #49, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 08/12: company--create-lines: Clear the old offset when appropriate, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 07/12: company--create-lines: only reserve width for numbers when they'll be displayed,
Dmitry Gutov <=
- [ELPA-diffs] [elpa] 04/12: {cutoff, offset}, {numbered, position}-line, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 09/12: * company-capf.el (company--capf-data): Don't get confused by lambda exps., Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 10/12: Release 0.6.14, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 11/12: Remove leftover message statement, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 02/12: Render the popup with margins, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 05/12: Render scrollbar on the side of the tooltip, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 12/12: Merge commit '8dc8f9525714db66f659a2a51322345068764bd3' from company, Dmitry Gutov, 2014/01/25