Fix #3007: wrong-type-arg stringp on eshell completion

This commit is contained in:
Henrik Lissner 2020-05-11 05:32:51 -04:00
parent 7cf2109b1a
commit 1529dcaaf5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -181,5 +181,5 @@ You should use `set-eshell-alias!' to change this.")
;; installed for bash completion to work. How frustrating. This way we ;; installed for bash completion to work. How frustrating. This way we
;; can at least get bash completion whether or not fish is present. ;; can at least get bash completion whether or not fish is present.
(defadvice! +eshell--fallback-to-bash-a (&rest _) (defadvice! +eshell--fallback-to-bash-a (&rest _)
:before-while #'fish-completion--list-completions-with-desc :before-until #'fish-completion--list-completions-with-desc
(executable-find "fish"))) (unless (executable-find "fish") "")))