Fix thinko in ls-lisp--insert-directory

* lisp/ls-lisp.el (ls-lisp--insert-directory): Ensure that
SWITCHES is a string.
This commit is contained in:
Michael Albinus 2021-10-09 16:18:53 +02:00
parent ec9f25bd35
commit 81f20e8b89

View file

@ -283,6 +283,7 @@ are also supported; unsupported long options are silently ignored."
(funcall orig-fun
file switches wildcard full-directory-p)
;; We need the directory in order to find the right handler.
(setq switches (or switches ""))
(let ((handler (find-file-name-handler (expand-file-name file)
'insert-directory))
(orig-file file)