Fix #1575: SPC * error when no symbol at point

This commit is contained in:
Henrik Lissner 2019-08-07 18:37:02 -04:00
parent 4a92d12267
commit b330728032
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -267,7 +267,7 @@ If prefix ARG is set, prompt for a known project to search from."
"Conduct a text search in the current project for symbol at point.
If prefix ARG is set, prompt for a known project to search from."
(interactive
(list current-prefix-arg (thing-at-point 'symbol t)))
(list current-prefix-arg (or (thing-at-point 'symbol t) "")))
(let ((default-directory
(if arg
(if-let* ((projects (projectile-relevant-known-projects)))