]> code.delx.au - gnu-emacs-elpa/commitdiff
Make sure tooltip numbers are cropped correctly at the window edge.
authorNikolaj Schumacher <git@nschum.de>
Wed, 15 Apr 2009 07:41:59 +0000 (09:41 +0200)
committerNikolaj Schumacher <git@nschum.de>
Wed, 15 Apr 2009 11:38:39 +0000 (13:38 +0200)
company.el

index 5a09eb80e2140a69040cc541c7ee5209856b7953..598bf56c8499920dce986d662b4eab93a2f5935a 100644 (file)
@@ -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)