From b37a65e4bf08c4eec4fa5b81a5efc3945fca44de Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 1 Jan 2022 12:42:56 +0000 Subject: patch 8.2.3966: when using feedkeys() abbreviations may be blocked Problem: When using feedkeys() abbreviations may be blocked. Solution: Reset tb_no_abbr_cnt when running out of characters. (closes #9448) --- src/getchar.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/getchar.c') diff --git a/src/getchar.c b/src/getchar.c index 209ee06f07..704d4d3954 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -3239,6 +3239,9 @@ vgetorpeek(int advance) if (pending_exmode_active) exmode_active = EXMODE_NORMAL; + // no chars to block abbreviation for + typebuf.tb_no_abbr_cnt = 0; + break; } -- cgit v1.2.3