From 6291d3b7b1052f22c33ce3e47d64fa17abe0a1dd Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Wed, 11 May 2022 23:43:11 +0530 Subject: [PATCH] Fix regression in marking files in Dired --- sxiv.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))