diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-07 22:27:41 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-14 18:20:29 -0400 |
commit | afa5b04d00856377f6ddd201ff972c74d559ade4 (patch) | |
tree | d247356ae9b1ce12bd623c6da56a816d93e32b75 /src | |
parent | 9b361e9ea181148eedf5ffd9f0b149838f754bdd (diff) | |
download | rneovim-afa5b04d00856377f6ddd201ff972c74d559ade4.tar.gz rneovim-afa5b04d00856377f6ddd201ff972c74d559ade4.tar.bz2 rneovim-afa5b04d00856377f6ddd201ff972c74d559ade4.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/getchar.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; + } } /* |