mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
test: add a bit more testing for vim.on_key() (#28095)
Also: - Don't use NUMBUFLEN as buffer length as its unrelated. - Restore accidentally removed comment from last commit.
This commit is contained in:
@@ -1122,6 +1122,8 @@ static void gotchars(const uint8_t *chars, size_t len)
|
||||
pending--;
|
||||
}
|
||||
|
||||
// When receiving a special key sequence, store it until we have all
|
||||
// the bytes and we can decide what to do with it.
|
||||
if ((pending == 0 || in_mbyte) && c == K_SPECIAL) {
|
||||
pending += 2;
|
||||
if (!in_mbyte) {
|
||||
|
Reference in New Issue
Block a user