aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.h
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-10-08 21:12:20 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-10-08 21:14:07 -0400
commitf181efdeaf07a788203b60a2df915118eeb6f0fc (patch)
tree7c27931728dedf33b7f733175e6c1015d848361c /src/nvim/getchar.h
parent573567aef6c62728378394af9767ecf65622ea42 (diff)
downloadrneovim-f181efdeaf07a788203b60a2df915118eeb6f0fc.tar.gz
rneovim-f181efdeaf07a788203b60a2df915118eeb6f0fc.tar.bz2
rneovim-f181efdeaf07a788203b60a2df915118eeb6f0fc.zip
vim-patch:8.1.0466: autocmd test fails
Problem: Autocmd test fails. Solution: Do call inchar() when flushing typeahead. https://github.com/vim/vim/commit/6a2633b00bb00bcf0d994f08d1c54ace2c221b58
Diffstat (limited to 'src/nvim/getchar.h')
-rw-r--r--src/nvim/getchar.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/getchar.h b/src/nvim/getchar.h
index 38a2e75663..4f548d975a 100644
--- a/src/nvim/getchar.h
+++ b/src/nvim/getchar.h
@@ -16,6 +16,13 @@ enum {
REMAP_SKIP = -3, ///< No remapping for first char.
} RemapValues;
+// Argument for flush_buffers().
+typedef enum {
+ FLUSH_MINIMAL,
+ FLUSH_TYPEAHEAD, // flush current typebuf contents
+ FLUSH_INPUT // flush typebuf and inchar() input
+} flush_buffers_T;
+
#define KEYLEN_PART_KEY -1 /* keylen value for incomplete key-code */
#define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */
#define KEYLEN_REMOVED 9999 /* keylen value for removed sequence */