startup: silent-mode is not full_screen

silent-mode (AKA batch-mode, -es/-Es) by definition should not behave
like a UI.

There are still some places that check `full_screen` to decide behavior,
e.g. msg_start().  Future: maybe eliminate `full_screen`, check
`ui_active()` instead?
This commit is contained in:
Justin M. Keyes 2018-05-26 17:18:52 +02:00
parent d00ef758c3
commit 787ae1b38b

View File

@ -97,7 +97,6 @@ typedef struct {
char_u *tagname; // tag from -t argument char_u *tagname; // tag from -t argument
char_u *use_ef; // 'errorfile' from -q argument char_u *use_ef; // 'errorfile' from -q argument
int want_full_screen;
bool input_isatty; // stdin is a terminal bool input_isatty; // stdin is a terminal
bool output_isatty; // stdout is a terminal bool output_isatty; // stdout is a terminal
bool err_isatty; // stderr is a terminal bool err_isatty; // stderr is a terminal
@ -271,15 +270,9 @@ int main(int argc, char **argv)
/* Don't redraw until much later. */ /* Don't redraw until much later. */
++RedrawingDisabled; ++RedrawingDisabled;
/*
* When listing swap file names, don't do cursor positioning et. al.
*/
if (recoverymode && fname == NULL)
params.want_full_screen = FALSE;
setbuf(stdout, NULL); setbuf(stdout, NULL);
full_screen = true; full_screen = !silent_mode;
// Set the default values for the options that use Rows and Columns. // Set the default values for the options that use Rows and Columns.
win_init_size(); win_init_size();
@ -1247,7 +1240,6 @@ static void init_params(mparm_T *paramp, int argc, char **argv)
memset(paramp, 0, sizeof(*paramp)); memset(paramp, 0, sizeof(*paramp));
paramp->argc = argc; paramp->argc = argc;
paramp->argv = argv; paramp->argv = argv;
paramp->want_full_screen = true;
paramp->use_debug_break_level = -1; paramp->use_debug_break_level = -1;
paramp->window_count = -1; paramp->window_count = -1;
paramp->listen_addr = NULL; paramp->listen_addr = NULL;