changeset 21654:bb0c4325a712 v8.2.1377

patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess up Commit: https://github.com/vim/vim/commit/b8d732e93e4b70ad992a12f761bc6a1279dd495b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 5 22:07:26 2020 +0200 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 https://github.com/vim/vim/issues/6541)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Aug 2020 22:15:16 +0200
parents 3300fdcbe5be
children e46ef9eac57a
files src/getchar.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -447,6 +447,8 @@ flush_buffers(flush_buffers_T flush_type
     typebuf.tb_silent = 0;
     cmd_silent = FALSE;
     typebuf.tb_no_abbr_cnt = 0;
+    if (++typebuf.tb_change_cnt == 0)
+	typebuf.tb_change_cnt = 1;
 }
 
 /*
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1377,
+/**/
     1376,
 /**/
     1375,