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:
parent
6c4bf16208
commit
11793be240
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ workspace."
|
||||||
|
|
||||||
;;
|
;;
|
||||||
(defun +helm--grep-source ()
|
(defun +helm--grep-source ()
|
||||||
|
(require 'helm-projectile)
|
||||||
(helm-build-async-source (capitalize (helm-grep-command t))
|
(helm-build-async-source (capitalize (helm-grep-command t))
|
||||||
:header-name (lambda (_name) "Helm Projectile Grep (C-c ? Help)")
|
:header-name (lambda (_name) "Helm Projectile Grep (C-c ? Help)")
|
||||||
:candidates-process #'helm-grep-collect-candidates
|
:candidates-process #'helm-grep-collect-candidates
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue