Skip to content

Commit b8d732e

Browse files
committed
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)
1 parent 803af68 commit b8d732e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/getchar.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,8 @@ flush_buffers(flush_buffers_T flush_typeahead)
447447
typebuf.tb_silent = 0;
448448
cmd_silent = FALSE;
449449
typebuf.tb_no_abbr_cnt = 0;
450+
if (++typebuf.tb_change_cnt == 0)
451+
typebuf.tb_change_cnt = 1;
450452
}
451453

452454
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1377,
757759
/**/
758760
1376,
759761
/**/

0 commit comments

Comments
 (0)