]> rtime.felk.cvut.cz Git - sojka/company-mode.git/commitdiff
Fixed when tooltip was too short to display number of remaining items.
authorNikolaj Schumacher <git@nschum.de>
Fri, 17 Apr 2009 09:04:20 +0000 (11:04 +0200)
committerNikolaj Schumacher <git@nschum.de>
Sat, 18 Apr 2009 11:06:46 +0000 (13:06 +0200)
company.el

index 9be38482e7e8ff52f67cfa0a493e448fc681a2ea..e5c81dc075f99d85391515cc309103c0a4149e81 100644 (file)
@@ -1481,7 +1481,7 @@ Example:
                       (setq remainder (format "...(%d)" remainder))))
 
     (decf selection company-tooltip-offset)
-    (setq width (min (length previous) (length remainder))
+    (setq width (max (length previous) (length remainder))
           lines (nthcdr company-tooltip-offset company-candidates)
           len (min limit len)
           lines-copy lines)