From ded8989e824ef91efbe0cda289830013e115d84d Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Thu, 3 Sep 2020 10:03:27 +0530 Subject: [PATCH] Add workaround for possible Emacs issue (see #9) --- sxiv.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sxiv.el b/sxiv.el index 06ddac7..db7b859 100644 --- a/sxiv.el +++ b/sxiv.el @@ -58,7 +58,9 @@ With no marked files, or if not in a Dired buffer, return nil." Return PATHS unchanged." (cl-loop for path in paths ;; 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! ;; ;; Why would there be a directory in the selected ;; ;; files, seeing as one can't mark directories in