From: Bram Moolenaar Date: Wed, 5 Aug 2020 20:07:26 +0000 (+0200) Subject: patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess up X-Git-Tag: v8.2.1377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8d732e93e4b70ad992a12f761bc6a1279dd495b;p=vim patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess up Problem: Triggering the ATTENTION prompt causes typeahead to be messed up. Solution: Increment tb_change_cnt. (closes #6541) --- diff --git a/src/getchar.c b/src/getchar.c index e040748d6..a8778e0c6 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -447,6 +447,8 @@ flush_buffers(flush_buffers_T flush_typeahead) typebuf.tb_silent = 0; cmd_silent = FALSE; typebuf.tb_no_abbr_cnt = 0; + if (++typebuf.tb_change_cnt == 0) + typebuf.tb_change_cnt = 1; } /* diff --git a/src/version.c b/src/version.c index 53e47bf7f..f5eb42bcf 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1377, /**/ 1376, /**/