Skip to content

Commit 9404a18

Browse files
committed
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)
1 parent 819d3e5 commit 9404a18

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ main
375375
setvbuf(stdout, NULL, _IOLBF, 0);
376376
#endif
377377

378-
/* This message comes before term inits, but after setting "silent_mode"
379-
* when the input is not a tty. */
380-
if (GARGCOUNT > 1 && !silent_mode)
378+
// This message comes before term inits, but after setting "silent_mode"
379+
// when the input is not a tty. Omit the message with --not-a-term.
380+
if (GARGCOUNT > 1 && !silent_mode && !is_not_a_term())
381381
printf(_("%d files to edit\n"), GARGCOUNT);
382382

383383
if (params.want_full_screen && !silent_mode)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ static char *(features[]) =
767767

768768
static int included_patches[] =
769769
{ /* Add new patch number below this line */
770+
/**/
771+
1258,
770772
/**/
771773
1257,
772774
/**/

0 commit comments

Comments
 (0)