aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-29 18:37:07 +0800
committerGitHub <noreply@github.com>2024-03-29 18:37:07 +0800
commitf29c41d665fde8e03848db12093219466deceda2 (patch)
treee7b8c7f926e6f3097bd3992fbae507ddf3c0eb46 /src/nvim/os
parentfc19ee01acc30bac371f5a56a97a5cdfe8094014 (diff)
downloadrneovim-f29c41d665fde8e03848db12093219466deceda2.tar.gz
rneovim-f29c41d665fde8e03848db12093219466deceda2.tar.bz2
rneovim-f29c41d665fde8e03848db12093219466deceda2.zip
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.
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c
index baa99fca65..5218e50df6 100644
--- a/src/nvim/os/input.c
+++ b/src/nvim/os/input.c
@@ -255,9 +255,9 @@ size_t input_enqueue(String keys)
while (rbuffer_space(input_buffer) >= 19 && ptr < end) {
// A "<x>" form occupies at least 1 characters, and produces up
// to 19 characters (1 + 5 * 3 for the char and 3 for a modifier).
- // In the case of K_SPECIAL(0x80), 3 bytes are escaped and needed,
+ // In the case of K_SPECIAL (0x80), 3 bytes are escaped and needed,
// but since the keys are UTF-8, so the first byte cannot be
- // K_SPECIAL(0x80).
+ // K_SPECIAL (0x80).
uint8_t buf[19] = { 0 };
// Do not simplify the keys here. Simplification will be done later.
unsigned new_size