patch 9.1.1853: Ctrl-F and Ctrl-B at more prompt not working with key protocol

Problem:  Ctrl-F and Ctrl-B at more prompt not working with kitty
          keyboard protocol or modifyOtherKeys (after v9.1.1849).
Solution: Call merge_modifyOtherKeys() in get_keystroke() (zeertzjq).

closes: #18558

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-10-13 19:02:10 +00:00
committed by Christian Brabandt
parent a55dc8c57c
commit 6622dc2ded
3 changed files with 19 additions and 1 deletions

View File

@ -871,6 +871,7 @@ get_keystroke(void)
int save_mapped_ctrl_c = mapped_ctrl_c;
int waited = 0;
mod_mask = 0;
mapped_ctrl_c = FALSE; // mappings are not used here
for (;;)
{
@ -974,7 +975,7 @@ get_keystroke(void)
vim_free(buf);
mapped_ctrl_c = save_mapped_ctrl_c;
return n;
return merge_modifyOtherKeys(n, &mod_mask);
}
// For overflow detection, add a digit safely to an int value.