diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2006-01-23 01:09:26 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2006-01-23 01:09:26 +0000 |
commit | 1acadcfe7f90407ecf87e43d6063b1f73613f721 (patch) | |
tree | 03c444e16353d3162e26dec4cef0cf20efb88ae4 /lisp/thumbs.el | |
parent | f1e73d841b90e7a8dd190c28c6eb2f41fa76d656 (diff) | |
download | emacs-1acadcfe7f90407ecf87e43d6063b1f73613f721.tar.gz emacs-1acadcfe7f90407ecf87e43d6063b1f73613f721.tar.bz2 emacs-1acadcfe7f90407ecf87e43d6063b1f73613f721.zip |
(thumbs-file-alist): Avoid creating duplicate entries.
Diffstat (limited to 'lisp/thumbs.el')
-rw-r--r-- | lisp/thumbs.el | 9 |
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))))) |