mirror of
https://github.com/neovim/neovim.git
synced 2026-04-29 18:54:18 +00:00
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:
@@ -3015,7 +3015,7 @@ static int vgetorpeek(bool advance)
|
|||||||
/// Return -1 when end of input script reached.
|
/// Return -1 when end of input script reached.
|
||||||
///
|
///
|
||||||
/// @param wait_time milliseconds
|
/// @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 len = 0; // Init for GCC.
|
||||||
int retesc = false; // Return ESC with gotint.
|
int retesc = false; // Return ESC with gotint.
|
||||||
|
|||||||
Reference in New Issue
Block a user