Skip to content

Commit 83f4cbd

Browse files
committed
patch 8.1.0052: when mapping to <Nop> times out the next mapping is skipped
Problem: When a mapping to <Nop> times out the next mapping is skipped. Solution: Reset "timedout" when waiting for a character. (Christian Brabandt, closes #2921)
1 parent 79c6b51 commit 83f4cbd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: src/getchar.c

+5
Original file line numberDiff line numberDiff line change
@@ -2856,6 +2856,11 @@ vgetorpeek(int advance)
28562856
/*
28572857
* get a character: 3. from the user - get it
28582858
*/
2859+
if (typebuf.tb_len == 0)
2860+
// timedout may have been set while waiting for a mapping
2861+
// that has a <Nop> RHS.
2862+
timedout = FALSE;
2863+
28592864
wait_tb_len = typebuf.tb_len;
28602865
c = inchar(typebuf.tb_buf + typebuf.tb_off + typebuf.tb_len,
28612866
typebuf.tb_buflen - typebuf.tb_off - typebuf.tb_len - 1,

Diff for: src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
52,
764766
/**/
765767
51,
766768
/**/

0 commit comments

Comments
 (0)