mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Revert "TUI: terminfo_start: use unibi_from_term directly"
If $TERM is not defined then unibi_from_term() would crash.
Reverts 3bdc34d065
.
ref #9072
This commit is contained in:
parent
e2647366c9
commit
8ac44984c4
@ -209,7 +209,7 @@ static void terminfo_start(UI *ui)
|
|||||||
|
|
||||||
// Set up unibilium/terminfo.
|
// Set up unibilium/terminfo.
|
||||||
const char *term = os_getenv("TERM");
|
const char *term = os_getenv("TERM");
|
||||||
data->ut = unibi_from_term(term);
|
data->ut = unibi_from_env();
|
||||||
char *termname = NULL;
|
char *termname = NULL;
|
||||||
if (!term || !data->ut) {
|
if (!term || !data->ut) {
|
||||||
data->ut = terminfo_from_builtin(term, &termname);
|
data->ut = terminfo_from_builtin(term, &termname);
|
||||||
|
Loading…
Reference in New Issue
Block a user