completion/helm: fix void variable refs #2071

This commit is contained in:
Henrik Lissner 2019-11-18 14:17:48 -05:00
parent c44185168d
commit fd979d8e52
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -74,9 +74,9 @@ workspace."
(command
(list "rg --no-heading --line-number --color never"
"-S"
(when all-files-p "-z -uu")
(unless recursive-p "--maxdepth 1")))
(helm-ag-base-command (string-join command " ")))
(when all-files "-z -uu")
(unless recursive "--maxdepth 1")))
(helm-ag-base-command (string-join (delq nil command) " ")))
;; TODO Define our own sources instead
(helm-attrset 'name (format "[rg %s] Searching %s"
(string-join (delq nil (cdr command)) " ")