tui: Don't use stderr as an output fallback for the TUI

Ref: https://github.com/neovim/neovim/issues/3547#issuecomment-152156639
This commit is contained in:
Thiago de Arruda 2015-10-29 09:09:05 -03:00
parent 7e8b431d3f
commit c2185833e8

View File

@ -120,8 +120,7 @@ static void terminfo_start(UI *ui)
data->unibi_ext.enter_insert_mode = -1;
data->unibi_ext.enter_replace_mode = -1;
data->unibi_ext.exit_insert_mode = -1;
// write output to stderr if stdout is not a tty
data->out_fd = os_isatty(1) ? 1 : (os_isatty(2) ? 2 : 1);
data->out_fd = 1;
data->out_isatty = os_isatty(data->out_fd);
// setup unibilium
data->ut = unibi_from_env();