aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index e5958e74a6..b2295ea0be 100644
--- a/src/main.c
+++ b/src/main.c
@@ -8,6 +8,7 @@
#define EXTERN
#include <string.h>
+#include <stdbool.h>
#include "vim.h"
#include "main.h"
@@ -1624,9 +1625,8 @@ static void handle_tag(char_u *tagname)
*/
static void check_tty(mparm_T *parmp)
{
- int input_isatty; /* is active input a terminal? */
-
- input_isatty = mch_input_isatty();
+ // is active input a terminal?
+ bool input_isatty = os_isatty(read_cmd_fd);
if (exmode_active) {
if (!input_isatty)
silent_mode = TRUE;