diff options
author | erw7 <erw7.github@gmail.com> | 2021-09-27 00:27:18 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 08:27:18 -0700 |
commit | 44145847dcf2c641b313026a41d1955f76ca459a (patch) | |
tree | 4f6bf47598cae8563ab940fccb730f66d9db04aa | |
parent | d4fa1649fbafe7bedb4bee0b014dd4723ad0ee97 (diff) | |
download | rneovim-44145847dcf2c641b313026a41d1955f76ca459a.tar.gz rneovim-44145847dcf2c641b313026a41d1955f76ca459a.tar.bz2 rneovim-44145847dcf2c641b313026a41d1955f76ca459a.zip |
fix(tui): remove obsolete $NVIM detection #15791
Initially, we planned to set the NVIM environment variable to detect that
neovim is running in the neovim built-in terminal. At the time this code
was written, there was no way for a parent to set environment variables
for a program running in an embedded terminal. Later it was implemented in
#12937, but the code to set the NVIM was not added. #11390 now uses ConPTY
instead of winpty when possible, so it is no longer necessary to force the
use of win32con even when running inside an embedded terminal. Therefore,
we now do not need this code.
-rw-r--r-- | src/nvim/os/tty.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nvim/os/tty.c b/src/nvim/os/tty.c index c80ef99084..126b1b0044 100644 --- a/src/nvim/os/tty.c +++ b/src/nvim/os/tty.c @@ -23,15 +23,6 @@ /// @param out_fd stdout file descriptor void os_tty_guess_term(const char **term, int out_fd) { - bool winpty = (os_getenv("NVIM") != NULL); - - if (winpty) { - // Force TERM=win32con when running in winpty. - *term = "win32con"; - uv_tty_set_vterm_state(UV_TTY_UNSUPPORTED); - return; - } - bool conemu_ansi = strequal(os_getenv("ConEmuANSI"), "ON"); bool vtp = false; |