diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-01 00:37:37 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-10-01 00:42:19 +0200 |
commit | 8ac44984c49b05940864caa379dab21af6bc5eca (patch) | |
tree | bb3dd68f56804a0b93fa5da91dfd56f3dba22656 | |
parent | e2647366c95ef307963a1d7bcf1ac0da20c06858 (diff) | |
download | rneovim-8ac44984c49b05940864caa379dab21af6bc5eca.tar.gz rneovim-8ac44984c49b05940864caa379dab21af6bc5eca.tar.bz2 rneovim-8ac44984c49b05940864caa379dab21af6bc5eca.zip |
Revert "TUI: terminfo_start: use unibi_from_term directly"
If $TERM is not defined then unibi_from_term() would crash.
Reverts 3bdc34d0657d223599afdf0ce9b072fafa3d5648.
ref #9072
-rw-r--r-- | src/nvim/tui/tui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index c771a3a0a5..575932c7da 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -209,7 +209,7 @@ static void terminfo_start(UI *ui) // Set up unibilium/terminfo. const char *term = os_getenv("TERM"); - data->ut = unibi_from_term(term); + data->ut = unibi_from_env(); char *termname = NULL; if (!term || !data->ut) { data->ut = terminfo_from_builtin(term, &termname); |