1
0
forked from aniani/vim

patch 8.1.0466: autocmd test fails

Problem:    Autocmd test fails.
Solution:   Do call inchar() when flushing typeahead.
This commit is contained in:
Bram Moolenaar
2018-10-07 23:16:36 +02:00
parent 95ba5c364f
commit 6a2633b00b
7 changed files with 34 additions and 22 deletions

View File

@@ -2108,6 +2108,13 @@ typedef enum {
PASTE_ONE_CHAR /* return first character */
} paste_mode_T;
// Argument for flush_buffers().
typedef enum {
FLUSH_MINIMAL,
FLUSH_TYPEAHEAD, // flush current typebuf contents
FLUSH_INPUT // flush typebuf and inchar() input
} flush_buffers_T;
#include "ex_cmds.h" /* Ex command defines */
#include "spell.h" /* spell checking stuff */