diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-05 22:07:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-05 22:07:26 +0200 |
commit | b8d732e93e4b70ad992a12f761bc6a1279dd495b (patch) | |
tree | d22f03a0b2eb0ae5762ceece1a56bd78dda16402 /src/getchar.c | |
parent | 803af686e23c7bb17273bb0c78ff0bf97e8d23f4 (diff) | |
download | vim-git-b8d732e93e4b70ad992a12f761bc6a1279dd495b.tar.gz |
patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess upv8.2.1377
Problem: Triggering the ATTENTION prompt causes typeahead to be messed up.
Solution: Increment tb_change_cnt. (closes #6541)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } /* |