summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-07-11 19:01:57 +0200
committerewy <ewy0@protonmail.com>2026-07-11 19:01:57 +0200
commitcc55338db781daa554ff88da465ab07019af3db7 (patch)
treef429235ef8cfa942bc7c33b204dec782a29a21ff /main.go
parent45895d70edb51c877714d6abae70be73f0df6998 (diff)
don't show the menu twice if quit
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index ed2404c..7abadba 100644
--- a/main.go
+++ b/main.go
@@ -210,7 +210,7 @@ func pik() *spool.ExitCode {
}
// TODO: Move auto-all logic into Search?
- if !*flags.All && result.Target == nil && SourcesWithoutResults == nil && !ForceConfirm {
+ if !*flags.All && result.Target == nil && len(result.Args) > 0 && SourcesWithoutResults == nil && !ForceConfirm {
_ = pflag.Set("all", "true")
ForceConfirm = true
SourcesWithoutResults = &c