diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c index 99263b8b77..e5958e74a6 100644 --- a/src/main.c +++ b/src/main.c @@ -46,6 +46,7 @@ #include "ui.h" #include "version.h" #include "window.h" +#include "os/input.h" #include "os/os.h" #include "os/signal.h" @@ -76,7 +77,7 @@ typedef struct { char_u *use_ef; /* 'errorfile' from -q argument */ int want_full_screen; - int stdout_isatty; /* is stdout a terminal? */ + bool stdout_isatty; /* is stdout a terminal? */ char_u *term; /* specified terminal name */ int ask_for_key; /* -x argument */ int no_swap_file; /* "-n" argument used */ @@ -1337,9 +1338,6 @@ static void command_line_scan(mparm_T *parmp) /* "--startuptime <file>" already handled */ break; - /* case 'd': -d {device} is handled in mch_check_win() for the - * Amiga */ - case 'q': /* "-q {errorfile}" QuickFix mode */ parmp->use_ef = (char_u *)argv[0]; break; @@ -1528,7 +1526,7 @@ static void allocate_generic_buffers(void) */ static void check_and_set_isatty(mparm_T *paramp) { - paramp->stdout_isatty = (mch_check_win(paramp->argc, paramp->argv) != FAIL); + paramp->stdout_isatty = os_isatty(STDOUT_FILENO); TIME_MSG("window checked"); } |