]> granicus.if.org Git - vim/commitdiff
patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess up v8.2.1377
authorBram Moolenaar <Bram@vim.org>
Wed, 5 Aug 2020 20:07:26 +0000 (22:07 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 5 Aug 2020 20:07:26 +0000 (22:07 +0200)
Problem:    Triggering the ATTENTION prompt causes typeahead to be messed up.
Solution:   Increment tb_change_cnt. (closes #6541)

src/getchar.c
src/version.c

index e040748d66c1fd26dbb7c265599bddaff42da816..a8778e0c61503680e19622e8e1d51ee791743874 100644 (file)
@@ -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;
 }
 
 /*
index 53e47bf7f7ef3adab0d23c751b83112c9608069d..f5eb42bcfad815de6a6414d5c2924e8ca9b9de0f 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1377,
 /**/
     1376,
 /**/