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)
b8d732e93e
This commit is contained in:
Jan Edmund Lazo
2020-08-07 22:27:41 -04:00
parent 9b361e9ea1
commit afa5b04d00

View File

@@ -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;
}
}
/*