From 6c2086eb7cda2abfa74b594809b2cde76d82e475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 7 Sep 2016 20:01:20 +0200 Subject: [PATCH] search: don't filter if there are no search terms Updates #12. --- cmd/fdroidcl/search.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/fdroidcl/search.go b/cmd/fdroidcl/search.go index a713ca5..328a1cb 100644 --- a/cmd/fdroidcl/search.go +++ b/cmd/fdroidcl/search.go @@ -46,7 +46,10 @@ func runSearch(args []string) { if *installed || *updates { device = mustOneDevice() } - apps := filterAppsSearch(mustLoadIndexes(), args) + apps := mustLoadIndexes() + if len(args) > 0 { + apps = filterAppsSearch(apps, args) + } if *installed { apps = filterAppsInstalled(apps, device) }