summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index c1792a5..501a938 100644
--- a/commands.c
+++ b/commands.c
@@ -61,9 +61,9 @@ bool it_quit(arg_t a)
{
unsigned int i;
- if (options->to_stdout) {
+ if (options->to_stdout && markcnt > 0) {
for (i = 0; i < filecnt; i++) {
- if (!markcnt || files[i].marked)
+ if (files[i].marked)
printf("%s\n", files[i].name);
}
}