mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
input: Prefer keycodes in input_enqueue key translation
This is required to correctly handle certain keys such as <delete>
This commit is contained in:
@@ -184,7 +184,7 @@ size_t input_enqueue(String keys)
|
||||
|
||||
while (rbuffer_available(input_buffer) >= 6 && ptr < end) {
|
||||
uint8_t buf[6] = {0};
|
||||
unsigned int new_size = trans_special((uint8_t **)&ptr, buf, false);
|
||||
unsigned int new_size = trans_special((uint8_t **)&ptr, buf, true);
|
||||
|
||||
if (!new_size) {
|
||||
if (*ptr == '<') {
|
||||
|
Reference in New Issue
Block a user