diff options
-rw-r--r-- | src/main.c | 9 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 9cf10bd78..aea652b5d 100644 --- a/src/main.c +++ b/src/main.c @@ -359,6 +359,13 @@ main */ check_tty(¶ms); +#ifdef _IOLBF + /* Ensure output works usefully without a tty: buffer lines instead of + * fully buffered. */ + if (silent_mode) + 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) @@ -2532,7 +2539,7 @@ scripterror: /* * Print a warning if stdout is not a terminal. - * When starting in Ex mode and commands come from a file, set Silent mode. + * When starting in Ex mode and commands come from a file, set silent_mode. */ static void check_tty(mparm_T *parmp) diff --git a/src/version.c b/src/version.c index cd994600b..57040747f 100644 --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1454, +/**/ 1453, /**/ 1452, |