changeset 68340:5325b795290b

(thumbs-file-alist): Avoid creating duplicate entries.
author Nick Roberts <nickrob@snap.net.nz>
date Mon, 23 Jan 2006 01:09:26 +0000
parents 5d0717b6a544
children acccd9689759
files lisp/thumbs.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/thumbs.el	Mon Jan 23 01:08:32 2006 +0000
+++ b/lisp/thumbs.el	Mon Jan 23 01:09:26 2006 +0000
@@ -498,10 +498,11 @@
       (let (list)
 	(goto-char (point-min))
 	(while (not (eobp))
-	  (if (thumbs-current-image)
-	      (push (cons (point-marker)
-			  (thumbs-current-image))
-		    list))
+	  (unless (= 0 (mod (point) (1+ thumbs-per-line)))
+	    (if (thumbs-current-image)
+		(push (cons (point-marker)
+			    (thumbs-current-image))
+		    list)))
 	  (forward-char 1))
 	(nreverse list)))))