summaryrefslogtreecommitdiff
path: root/helm-locate.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-01-31 08:21:45 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-01-31 08:21:45 +0100
commitab7edec7c73e0a9cab4517bfb301ff232fba3860 (patch)
tree04de53e24787758145a7219dcebf3d59e5c3d549 /helm-locate.el
parent589cdc239555a3eeea5579fe2eb596a7d9c4a1d1 (diff)
Fix helm-locate with other sources (#1364).
* helm-locate.el (helm-locate-init): Do it. Show error only when locate is used alone.
Diffstat (limited to 'helm-locate.el')
-rw-r--r--helm-locate.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/helm-locate.el b/helm-locate.el
index 53f4bf5b..3d7ff371 100644
--- a/helm-locate.el
+++ b/helm-locate.el
@@ -289,9 +289,10 @@ See also `helm-locate'."
(noresult (= err 1)))
(cond (noresult
(with-helm-buffer
- (insert (concat "* Exit with code 1, no result found,"
- " Command line was:\n\n "
- cmd))))
+ (unless (cdr helm-sources)
+ (insert (concat "* Exit with code 1, no result found,"
+ " Command line was:\n\n "
+ cmd)))))
((string= event "finished\n")
(with-helm-window
(setq mode-line-format