]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix scrolling up from the last item
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 9 Feb 2014 14:28:21 +0000 (16:28 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 9 Feb 2014 14:28:21 +0000 (16:28 +0200)
company.el

index cc33aa3edb0ea03c386fa7829e117c73b95c6def..c67485f4185ddbfb5cc11a802de76c097b01d7ce 100644 (file)
@@ -1961,7 +1961,7 @@ Example: \(company-begin-with '\(\"foo\" \"foobar\" \"foobarbaz\"\)\)"
         scrollbar-bounds)
 
     ;; Maybe clear old offset.
-    (when (<= len (+ company-tooltip-offset limit))
+    (when (< len (+ company-tooltip-offset limit))
       (setq company-tooltip-offset 0))
 
     ;; Scroll to offset.