diff --git a/sxiv.el b/sxiv.el index 51a5f0c..13e86b9 100644 --- a/sxiv.el +++ b/sxiv.el @@ -88,8 +88,9 @@ Return PATHS unchanged." "Open a `dired' buffer and mark any files marked by the user in `sxiv'." (find-file sxiv--directory) (let ((files (--> (split-string output "\n") - (-drop-last 1 it) - (sxiv-insert-subdirs it)))) + (-drop-last 1 it) + (mapcar #'file-relative-name it) + (sxiv-insert-subdirs it)))) (dired-mark-if (and (not (looking-at-p dired-re-dot)) (not (eolp))