From cc55338db781daa554ff88da465ab07019af3db7 Mon Sep 17 00:00:00 2001 From: ewy Date: Sat, 11 Jul 2026 19:01:57 +0200 Subject: don't show the menu twice if quit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') 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 -- cgit v1.3.1