aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPavel Platto <hinidu@gmail.com>2014-04-16 09:21:19 +0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-20 10:37:52 -0300
commitaea2e2cb126bf92e729b88013fd03b55ee4b3399 (patch)
tree581420b130e9896eff3d8dc0d4ec4d9aa74ae183 /src/main.c
parenta848fad656505c44983b606d7b484869b33dac56 (diff)
downloadrneovim-aea2e2cb126bf92e729b88013fd03b55ee4b3399.tar.gz
rneovim-aea2e2cb126bf92e729b88013fd03b55ee4b3399.tar.bz2
rneovim-aea2e2cb126bf92e729b88013fd03b55ee4b3399.zip
Removed mch_input_isatty
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;