dgutov pushed a commit to branch master in repository elpa. commit 209d36e7ac55afc109e2a57d9b6c89aa5336186d Author: Dmitry Gutov <dgu...@yandex.ru> 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)