Fix wrong-type-arg stringp error on +default/dired

When selecting a directory.
This commit is contained in:
Henrik Lissner 2020-07-27 18:09:12 -04:00
parent 0e73297707
commit 9c96feba56
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -63,7 +63,7 @@ If prefix ARG is non-nil, prompt for the search path."
"Open a directory in dired.
If prefix ARG is non-nil, prompt for a known project to open in dired."
(interactive "P")
(dired
(apply #'dired
(if arg
(completing-read "Open dired in project: " projectile-known-projects)
(list (completing-read "Open dired in project: " projectile-known-projects))
(dired-read-dir-and-switches ""))))