Add workaround for possible Emacs issue (see #9)
This commit is contained in:
parent
678b411a8f
commit
ded8989e82
4
sxiv.el
4
sxiv.el
|
@ -58,7 +58,9 @@ With no marked files, or if not in a Dired buffer, return nil."
|
||||||
Return PATHS unchanged."
|
Return PATHS unchanged."
|
||||||
(cl-loop for path in paths
|
(cl-loop for path in paths
|
||||||
;; If the file does not exist in the current directory...
|
;; If the file does not exist in the current directory...
|
||||||
unless (and (file-exists-p (file-name-nondirectory path))
|
when (and (not (file-exists-p (file-name-nondirectory path)))
|
||||||
|
;; Workaround for what looks like an Emacs issue (see TODO #9)
|
||||||
|
(file-exists-p path)
|
||||||
;; ;; ...I don't understand why this is here!
|
;; ;; ...I don't understand why this is here!
|
||||||
;; ;; Why would there be a directory in the selected
|
;; ;; Why would there be a directory in the selected
|
||||||
;; ;; files, seeing as one can't mark directories in
|
;; ;; files, seeing as one can't mark directories in
|
||||||
|
|
Reference in New Issue