]> git.eshelyaron.com Git - emacs.git/commitdiff
Add extra check for end of buffer.
authorMathias Dahl <mathias.dahl@gmail.com>
Mon, 24 Jul 2006 09:40:09 +0000 (09:40 +0000)
committerMathias Dahl <mathias.dahl@gmail.com>
Mon, 24 Jul 2006 09:40:09 +0000 (09:40 +0000)
lisp/tumme.el

index 8a443bc81c7e4c95517691196b68e9a946dce5ba..f2a5613d8337727356d15c73aa56b73978accd6c 100644 (file)
@@ -1659,7 +1659,8 @@ See also `tumme-line-up-dynamic'."
             (insert "\n")
           (insert " ")
           (setq count (1+ count))
-          (when (= count (- tumme-thumbs-per-row 1))
+          (when (and (= count (- tumme-thumbs-per-row 1))
+                    (not (eobp)))
             (forward-char)
             (insert "\n")
             (setq count 0)))))