Fix wdired entry when there are hidden subdirs

* lisp/dired.el (dired--unhide): Allow `C-c C-q' to work when
there are hidden inserted subdirs (bug#56698).
This commit is contained in:
Lars Ingebrigtsen 2022-07-23 09:33:18 +02:00
parent e5de76b72e
commit df667e9f17

View file

@ -2964,10 +2964,11 @@ See options: `dired-hide-details-hide-symlink-targets' and
;; approximate ("anywhere on the line is fine").
;; FIXME: This also removes other invisible properties!
(save-excursion
(remove-list-of-text-properties
(progn (goto-char start) (line-end-position))
(progn (goto-char end) (line-end-position))
'(invisible))))
(let ((inhibit-read-only t))
(remove-list-of-text-properties
(progn (goto-char start) (line-end-position))
(progn (goto-char end) (line-end-position))
'(invisible)))))
;;; Functions for finding the file name in a dired buffer line