]> granicus.if.org Git - vim/commitdiff
patch 8.1.1258: the "N files to edit" message can not be surpressed v8.1.1258
authorBram Moolenaar <Bram@vim.org>
Fri, 3 May 2019 20:25:40 +0000 (22:25 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 3 May 2019 20:25:40 +0000 (22:25 +0200)
Problem:    The "N files to edit" message can not be surpressed.
Solution:   Surpress the message with --not-a-term. (closes #4320)

src/main.c
src/version.c

index 2b45b80ecf1940d88a0ce2e53be79cbe85e94676..a57b196cf7e16cdeeaa70fc9fcde5abde7622fe7 100644 (file)
@@ -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)
index e5582e99e74bef1c9d0dcab80d89481852d6bd2e..69ab34b423d09d4109ed7d4efcd82b9002aa2019 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1258,
 /**/
     1257,
 /**/