changeset 16509:5256c1e27ea6 v8.1.1258

patch 8.1.1258: the "N files to edit" message can not be surpressed commit https://github.com/vim/vim/commit/9404a18ad9a47b10fc8de908da833ba7f12f72f5 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 3 22:25:40 2019 +0200 patch 8.1.1258: the "N files to edit" message can not be surpressed Problem: The "N files to edit" message can not be surpressed. Solution: Surpress the message with --not-a-term. (closes https://github.com/vim/vim/issues/4320)
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 May 2019 22:30:06 +0200
parents 8f88df3abdc9
children 816e05c23ddc
files src/main.c src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1258,
+/**/
     1257,
 /**/
     1256,