vim-patch:7.4.1886 (#36945)

Problem:    When waiting for a character is interrupted by receiving channel
            data and the first character of a mapping was typed, the mapping
            times out. (Ramel Eshed)
Solution:   When dealing with channel data don't return from mch_inchar().

cda7764d8e

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2025-12-14 10:59:50 +08:00
committed by GitHub
parent 64a0441d20
commit c2e0fd1c35

View File

@@ -3015,7 +3015,7 @@ static int vgetorpeek(bool advance)
/// Return -1 when end of input script reached.
///
/// @param wait_time milliseconds
int inchar(uint8_t *buf, int maxlen, long wait_time)
static int inchar(uint8_t *buf, int maxlen, long wait_time)
{
int len = 0; // Init for GCC.
int retesc = false; // Return ESC with gotint.