summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 2b45b80ec..a57b196cf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -375,9 +375,9 @@ main
setvbuf(stdout, NULL, _IOLBF, 0);
#endif
- /* This message comes before term inits, but after setting "silent_mode"
- * when the input is not a tty. */
- if (GARGCOUNT > 1 && !silent_mode)
+ // This message comes before term inits, but after setting "silent_mode"
+ // when the input is not a tty. Omit the message with --not-a-term.
+ if (GARGCOUNT > 1 && !silent_mode && !is_not_a_term())
printf(_("%d files to edit\n"), GARGCOUNT);
if (params.want_full_screen && !silent_mode)