Fix helm project search commands

Used ivy variable in helm commands, causing a void-variable error.

Reported by @ar1a
This commit is contained in:
Henrik Lissner 2018-07-24 14:07:13 +02:00
parent e865526c75
commit a8d41a93c0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -33,7 +33,7 @@ order.
(helm-ag--default-directory directory)
(helm-ag--default-target (list directory))
(engine (or engine
(cl-loop for tool in +ivy-project-search-engines
(cl-loop for tool in +helm-project-search-engines
if (executable-find (symbol-name tool))
return tool)
(and (or (executable-find "grep")
@ -131,7 +131,7 @@ list of: ripgrep, ag, pt, git-grep and grep. If ARG (universal argument),
preform search from current directory."
(interactive "P")
(call-interactively
(or (cl-loop for tool in (cl-remove-duplicates +ivy-project-search-engines)
(or (cl-loop for tool in (cl-remove-duplicates +helm-project-search-engines)
if (executable-find (symbol-name tool))
return (intern (format "+helm/%s%s" tool (if arg "-from-cwd" ""))))
(if arg