From 5bf9fc454e96beffc198272f811507345ef70f49 Mon Sep 17 00:00:00 2001 From: Mathias Dahl Date: Mon, 24 Jul 2006 09:40:09 +0000 Subject: [PATCH] Add extra check for end of buffer. --- lisp/tumme.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/tumme.el b/lisp/tumme.el index 8a443bc81c7..f2a5613d833 100644 --- a/lisp/tumme.el +++ b/lisp/tumme.el @@ -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))))) -- 2.39.2