From afa5b04d00856377f6ddd201ff972c74d559ade4 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 7 Aug 2020 22:27:41 -0400 Subject: 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 vim/vim#6541) https://github.com/vim/vim/commit/b8d732e93e4b70ad992a12f761bc6a1279dd495b --- src/nvim/getchar.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index dc11e4a232..c35398cd8d 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -456,6 +456,9 @@ void 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; + } } /* -- cgit