diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-03 22:25:40 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-03 22:25:40 +0200 |
commit | 9404a18ad9a47b10fc8de908da833ba7f12f72f5 (patch) | |
tree | a15e0fcba7660aafe8c62bbbeb27dbac8b50825b /src/main.c | |
parent | 819d3e52a1eab35409ea7e0ebdb2340507a42684 (diff) | |
download | vim-git-9404a18ad9a47b10fc8de908da833ba7f12f72f5.tar.gz |
patch 8.1.1258: the "N files to edit" message can not be surpressedv8.1.1258
Problem: The "N files to edit" message can not be surpressed.
Solution: Surpress the message with --not-a-term. (closes #4320)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
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) |