mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +00:00
Fix #3100. On virtual consoles (Alt-F1, etc.), the Ctrl-Z combination was lost.
This commit is contained in:

committed by
Justin M. Keyes

parent
e7ab3e7e59
commit
e247e3acdd
@@ -139,6 +139,9 @@ static void forward_modified_utf8(TermInput *input, TermKeyKey *key)
|
|||||||
if (key->type == TERMKEY_TYPE_KEYSYM
|
if (key->type == TERMKEY_TYPE_KEYSYM
|
||||||
&& key->code.sym == TERMKEY_SYM_ESCAPE) {
|
&& key->code.sym == TERMKEY_SYM_ESCAPE) {
|
||||||
len = (size_t)snprintf(buf, sizeof(buf), "<Esc>");
|
len = (size_t)snprintf(buf, sizeof(buf), "<Esc>");
|
||||||
|
} else if (key->type == TERMKEY_TYPE_KEYSYM
|
||||||
|
&& key->code.sym == TERMKEY_SYM_SUSPEND) {
|
||||||
|
len = (size_t)snprintf(buf, sizeof(buf), "<C-Z>");
|
||||||
} else {
|
} else {
|
||||||
len = termkey_strfkey(input->tk, buf, sizeof(buf), key, TERMKEY_FORMAT_VIM);
|
len = termkey_strfkey(input->tk, buf, sizeof(buf), key, TERMKEY_FORMAT_VIM);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user