mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
3dd166b203
commit
2c9dfddab1
@ -269,7 +269,11 @@ static TermInput *term_input_new(void)
|
|||||||
flags |= TERMKEY_FLAG_RAW;
|
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);
|
int curflags = termkey_get_canonflags(rv->tk);
|
||||||
termkey_set_canonflags(rv->tk, curflags | TERMKEY_CANON_DELBS);
|
termkey_set_canonflags(rv->tk, curflags | TERMKEY_CANON_DELBS);
|
||||||
// setup input handle
|
// setup input handle
|
||||||
|
Loading…
Reference in New Issue
Block a user