completion/helm: fix void-variable error #954

The grep backend assumes helm-projectile is available and references its
variables, but in some cases, it won't be (e.g. if a search command is
used early enough after startup).
This commit is contained in:
Henrik Lissner 2018-10-17 12:13:03 -04:00
parent 6c4bf16208
commit 11793be240
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -62,6 +62,7 @@ workspace."
;;
(defun +helm--grep-source ()
(require 'helm-projectile)
(helm-build-async-source (capitalize (helm-grep-command t))
:header-name (lambda (_name) "Helm Projectile Grep (C-c ? Help)")
:candidates-process #'helm-grep-collect-candidates