completion/{helm,ivy}: fix stringp error

Cause by the expectation that doom-project-root would never return
nil (which was changed to return nil if not in a valid project, due to
an update upstream, in projectile).
This commit is contained in:
Henrik Lissner 2018-12-11 18:59:30 -05:00
parent a37d199862
commit a89a2aa70c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 4 deletions

View file

@ -122,7 +122,7 @@ order.
(declare (indent defun))
(require 'helm-ag)
(helm-ag--init-state)
(let* ((project-root (doom-project-root))
(let* ((project-root (or (doom-project-root) default-directory))
(directory (or in project-root))
(default-directory directory)
(helm-ag--default-directory directory)