diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-04-22 16:39:58 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-04-23 15:43:45 -0400 |
commit | 1383c5f6cb053ff278bd86e5acc3224b16af5d87 (patch) | |
tree | c9f587f8ed9d440b2f9477583802cd28117cc3e6 /src/nvim/os/pty_process.c | |
parent | f26e35279d9aa602a66af271d56fe34ba2afbb77 (diff) | |
download | rneovim-1383c5f6cb053ff278bd86e5acc3224b16af5d87.tar.gz rneovim-1383c5f6cb053ff278bd86e5acc3224b16af5d87.tar.bz2 rneovim-1383c5f6cb053ff278bd86e5acc3224b16af5d87.zip |
TAB0 might not be defined in termios.h #2483
- OpenBSD termios.h does not have TAB0, skip
its use if it is not defined
Diffstat (limited to 'src/nvim/os/pty_process.c')
-rw-r--r-- | src/nvim/os/pty_process.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/os/pty_process.c b/src/nvim/os/pty_process.c index c64f3f9932..ff0bcfb6de 100644 --- a/src/nvim/os/pty_process.c +++ b/src/nvim/os/pty_process.c @@ -205,7 +205,10 @@ static void init_termios(struct termios *termios) FUNC_ATTR_NONNULL_ALL memset(termios, 0, sizeof(struct termios)); // Taken from pangoterm termios->c_iflag = ICRNL|IXON; - termios->c_oflag = OPOST|ONLCR|TAB0; + termios->c_oflag = OPOST|ONLCR; +#ifdef TAB0 + termios->c_oflag |= TAB0; +#endif termios->c_cflag = CS8|CREAD; termios->c_lflag = ISIG|ICANON|IEXTEN|ECHO|ECHOE|ECHOK; |