Fix previous manual mis-merge of dired-aux

* lisp/dired-aux.el (dired-rename-file): Fix manual mis-merge of
previous patch.
This commit is contained in:
Lars Ingebrigtsen 2020-09-04 15:50:48 +02:00
parent 9e5db99d31
commit 9e5fd29bed

View file

@ -1689,7 +1689,8 @@ unless OK-IF-ALREADY-EXISTS is non-nil."
(set-visited-file-name newname nil t)))
(dired-remove-file file)
;; See if it's an inserted subdir, and rename that, too.
(dired-rename-subdir file newname))
(when (file-directory-p file)
(dired-rename-subdir file newname)))
(defun dired-rename-subdir (from-dir to-dir)
(setq from-dir (file-name-as-directory from-dir)