(thumbs-file-alist): Avoid creating duplicate entries.
This commit is contained in:
parent
f1e73d841b
commit
1acadcfe7f
1 changed files with 5 additions and 4 deletions
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue