mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.1454: when in silent mode too much output is buffered
Problem: When in silent mode too much output is buffered. Solution: Use line buffering instead of fully buffered. (Brian M. Carlson, closes #2537)
This commit is contained in:
@@ -359,6 +359,13 @@ main
|
|||||||
*/
|
*/
|
||||||
check_tty(¶ms);
|
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"
|
/* 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. */
|
||||||
if (GARGCOUNT > 1 && !silent_mode)
|
if (GARGCOUNT > 1 && !silent_mode)
|
||||||
@@ -2532,7 +2539,7 @@ scripterror:
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Print a warning if stdout is not a terminal.
|
* 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
|
static void
|
||||||
check_tty(mparm_T *parmp)
|
check_tty(mparm_T *parmp)
|
||||||
|
@@ -771,6 +771,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 */
|
||||||
|
/**/
|
||||||
|
1454,
|
||||||
/**/
|
/**/
|
||||||
1453,
|
1453,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user