changeset 72083:bb51418c995c

Add extra check for end of buffer.
author Mathias Dahl <mathias.dahl@gmail.com>
date Mon, 24 Jul 2006 09:40:09 +0000
parents b5cc98f000c1
children 002ee31c5102
files lisp/tumme.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/tumme.el	Mon Jul 24 09:39:43 2006 +0000
+++ b/lisp/tumme.el	Mon Jul 24 09:40:09 2006 +0000
@@ -1659,7 +1659,8 @@
             (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)))))