summaryrefslogtreecommitdiff
path: root/lisp/thumbs.el
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2006-01-23 01:09:26 +0000
committerNick Roberts <nickrob@snap.net.nz>2006-01-23 01:09:26 +0000
commit1acadcfe7f90407ecf87e43d6063b1f73613f721 (patch)
tree03c444e16353d3162e26dec4cef0cf20efb88ae4 /lisp/thumbs.el
parentf1e73d841b90e7a8dd190c28c6eb2f41fa76d656 (diff)
downloademacs-1acadcfe7f90407ecf87e43d6063b1f73613f721.tar.gz
(thumbs-file-alist): Avoid creating duplicate entries.
Diffstat (limited to 'lisp/thumbs.el')
-rw-r--r--lisp/thumbs.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/thumbs.el b/lisp/thumbs.el
index df37e50c99c..a33d30ae58e 100644
--- a/lisp/thumbs.el
+++ b/lisp/thumbs.el
@@ -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)))))