From 99a3bed240a87277cf575f36748698c709eefcc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 30 Jun 2024 15:04:44 -0700 Subject: [PATCH] interactive mode shows same message as list --- main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 180d655..53a84ec 100644 --- a/main.go +++ b/main.go @@ -432,7 +432,13 @@ func interactiveMode() error { } if len(fls) <= 0 { - log.Printf("no files to show") + var msg string + if f.Blank() { + msg = "trash is empty" + } else { + msg = "no files to show" + } + fmt.Println(msg) return nil }