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:
Justin M. Keyes 2018-10-01 00:37:37 +02:00
parent e2647366c9
commit 8ac44984c4

View File

@ -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);