From cda7764d8e65325d4524e5d6c3174121eeb12cad Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 4 Jun 2016 13:32:35 +0200 Subject: patch 7.4.1886 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(). --- src/getchar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/getchar.c') diff --git a/src/getchar.c b/src/getchar.c index 81cb83794c..56de09470a 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -129,6 +129,7 @@ static int vgetorpeek(int); static void map_free(mapblock_T **); static void validate_maphash(void); static void showmap(mapblock_T *mp, int local); +static int inchar(char_u *buf, int maxlen, long wait_time, int tb_change_cnt); #ifdef FEAT_EVAL static char_u *eval_map_expr(char_u *str, int c); #endif @@ -2941,7 +2942,7 @@ vgetorpeek(int advance) * Return the number of obtained characters. * Return -1 when end of input script reached. */ - int + static int inchar( char_u *buf, int maxlen, -- cgit v1.2.3