mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
parent
3dd166b203
commit
2c9dfddab1
@ -269,7 +269,11 @@ static TermInput *term_input_new(void)
|
||||
flags |= TERMKEY_FLAG_RAW;
|
||||
}
|
||||
|
||||
rv->tk = termkey_new_abstract(os_getenv("TERM"), flags);
|
||||
const char *term = os_getenv("TERM");
|
||||
if (!term) {
|
||||
term = ""; // termkey_new_abstract assumes non-null (#2745)
|
||||
}
|
||||
rv->tk = termkey_new_abstract(term, flags);
|
||||
int curflags = termkey_get_canonflags(rv->tk);
|
||||
termkey_set_canonflags(rv->tk, curflags | TERMKEY_CANON_DELBS);
|
||||
// setup input handle
|
||||
|
Loading…
Reference in New Issue
Block a user