From f61379ef40c892685eccf1d34513d6a91df01898 Mon Sep 17 00:00:00 2001 From: Nikolaj Schumacher Date: Wed, 15 Apr 2009 09:41:59 +0200 Subject: [PATCH] Make sure tooltip numbers are cropped correctly at the window edge. --- company.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/company.el b/company.el index 5a09eb80e..598bf56c8 100644 --- a/company.el +++ b/company.el @@ -1398,9 +1398,8 @@ Example: (setq lines-copy lines) ;; number can make tooltip too long - (and company-show-numbers - (< (setq numbered company-tooltip-offset) 10) - (incf width 2)) + (when company-show-numbers + (setq numbered company-tooltip-offset)) (when previous (push (propertize (company-safe-substring previous 0 width) -- 2.39.2