forked from aniani/vim
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 #4320)
This commit is contained in:
parent
819d3e52a1
commit
9404a18ad9
@ -375,9 +375,9 @@ main
|
|||||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This message comes before term inits, but after setting "silent_mode"
|
// This message comes before term inits, but after setting "silent_mode"
|
||||||
* when the input is not a tty. */
|
// when the input is not a tty. Omit the message with --not-a-term.
|
||||||
if (GARGCOUNT > 1 && !silent_mode)
|
if (GARGCOUNT > 1 && !silent_mode && !is_not_a_term())
|
||||||
printf(_("%d files to edit\n"), GARGCOUNT);
|
printf(_("%d files to edit\n"), GARGCOUNT);
|
||||||
|
|
||||||
if (params.want_full_screen && !silent_mode)
|
if (params.want_full_screen && !silent_mode)
|
||||||
|
@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1258,
|
||||||
/**/
|
/**/
|
||||||
1257,
|
1257,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user