diff options
author | erw7 <erw7.github@gmail.com> | 2020-05-26 17:23:04 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2020-05-26 17:23:04 +0900 |
commit | e01fc33515d5cd3a9a595d0e6905bd16d3a861e5 (patch) | |
tree | e735d811c3082a94f8ea3f909259a4de80a8c7f4 /src/nvim/os/input.c | |
parent | e6e6affc0ee675861f3b1f093ae3e6572cd3b4a0 (diff) | |
download | rneovim-e01fc33515d5cd3a9a595d0e6905bd16d3a861e5.tar.gz rneovim-e01fc33515d5cd3a9a595d0e6905bd16d3a861e5.tar.bz2 rneovim-e01fc33515d5cd3a9a595d0e6905bd16d3a861e5.zip |
[squash] fix comment [skip ci]
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r-- | src/nvim/os/input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 139169f1c2..b7878d9da8 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -189,13 +189,11 @@ size_t input_enqueue(String keys) char *end = ptr + keys.size; while (rbuffer_space(input_buffer) >= 19 && ptr < end) { - // A "\<x>" form occupies at least 1 characters, and produces up + // 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) or CSI(0x9B), 3 bytes are escaped and // needed, but since the keys are UTF-8, so the first byte cannot be // K_SPECIAL(0x80) or CSI(0x9B). - // In UTF-8, a 5-6 byte representation is now an invalid sequence, but we - // reserve a 19-byte buffer for maximum security. uint8_t buf[19] = { 0 }; unsigned int new_size = trans_special((const uint8_t **)&ptr, (size_t)(end - ptr), buf, true, |