(when (= 0 (mod (setq i (1+ i)) thumbs-per-line))
(newline)))
(unless (bobp) (newline))
- (if diff (message "Type + to display more images."))))
+ (if (> diff 0) (message "Type + to display more images."))))
(defun thumbs-show-thumbs-list (list &optional dir same-window)
(unless (and (display-images-p)
(push elt thumbs-marked-list)
(let ((inhibit-read-only t))
(delete-char 1)
- (save-excursion
- (thumbs-insert-thumb elt t))))
+ (thumbs-insert-thumb elt t)))
(when (eolp) (forward-char)))
(defun thumbs-unmark ()
(setq thumbs-marked-list (delete elt thumbs-marked-list))
(let ((inhibit-read-only t))
(delete-char 1)
- (save-excursion
- (thumbs-insert-thumb elt nil))))
+ (thumbs-insert-thumb elt nil)))
(when (eolp) (forward-char)))
-
;; cleaning of old temp files
(mapc 'delete-file
(directory-files (thumbs-temp-dir) t thumbs-temp-prefix))