aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/input.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-03 06:11:22 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-05-03 06:21:50 +0800
commit27149e0071c3fa38c81526f63a997bedfd6e2be8 (patch)
tree8d819a934bd5c11c7947ff06bea23a609723d078 /src/nvim/os/input.c
parentddf7bb24f98b468d2bc6c16c6f300570fc6530f5 (diff)
downloadrneovim-27149e0071c3fa38c81526f63a997bedfd6e2be8.tar.gz
rneovim-27149e0071c3fa38c81526f63a997bedfd6e2be8.tar.bz2
rneovim-27149e0071c3fa38c81526f63a997bedfd6e2be8.zip
vim-patch:8.2.4858: K_SPECIAL may be escaped twice
Problem: K_SPECIAL may be escaped twice. Solution: Avoid double escaping. (closes vim/vim#10340) https://github.com/vim/vim/commit/db08887f24d20be11d184ce321bc0890613e42bd
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r--src/nvim/os/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c
index 9ee2f57b3d..437baf0e08 100644
--- a/src/nvim/os/input.c
+++ b/src/nvim/os/input.c
@@ -247,7 +247,7 @@ size_t input_enqueue(String keys)
uint8_t buf[19] = { 0 };
// Do not simplify the keys here. Simplification will be done later.
unsigned int new_size
- = trans_special((const uint8_t **)&ptr, (size_t)(end - ptr), buf, FSK_KEYCODE, NULL);
+ = trans_special((const uint8_t **)&ptr, (size_t)(end - ptr), buf, FSK_KEYCODE, true, NULL);
if (new_size) {
new_size = handle_mouse_event(&ptr, buf, new_size);