(thumbs-file-alist): Avoid creating duplicate entries.

This commit is contained in:
Nick Roberts 2006-01-23 01:09:26 +00:00
parent f1e73d841b
commit 1acadcfe7f

View file

@ -498,10 +498,11 @@ Open another window."
(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)))))