]> git.eshelyaron.com Git - emacs.git/commitdiff
image-dired: Set default-directory in thumbnail buffer
authorStefan Kangas <stefan@marxist.se>
Thu, 4 Nov 2021 04:10:28 +0000 (05:10 +0100)
committerStefan Kangas <stefan@marxist.se>
Thu, 4 Nov 2021 04:10:28 +0000 (05:10 +0100)
* lisp/image-dired.el (image-dired-show-all-from-dir): Set
default-directory.  This fixes e.g. 'dired-jump'.

lisp/image-dired.el

index 6ba11a2b3fb6a6bc13e80a4700796259976ae901..99b5dad3a194d57b6f652210ea87b0363564b1ec 100644 (file)
@@ -1092,6 +1092,7 @@ never ask for confirmation."
                       image-dired-show-all-from-dir-max-files))))
            (image-dired-display-thumbs)
            (pop-to-buffer image-dired-thumbnail-buffer)
+           (setq default-directory dir)
            (image-dired-unmark-all-marks))
           (t (message "Image-Dired canceled")))))