aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memline.c
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/memline.c
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/memline.c')
-rw-r--r--src/nvim/memline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index 712ed0f29f..51f99db0de 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -3360,15 +3360,15 @@ static char *findswapname(buf_T *buf, char **dirp, char *old_fname,
if (choice == 0) {
// Show info about the existing swap file.
- attention_message(buf, (char_u *) fname);
+ attention_message(buf, (char_u *)fname);
// We don't want a 'q' typed at the more-prompt
// interrupt loading a file.
- got_int = FALSE;
+ got_int = false;
// If vimrc has "simalt ~x" we don't want it to
// interfere with the prompt here.
- flush_buffers(TRUE);
+ flush_buffers(FLUSH_TYPEAHEAD);
}
if (swap_exists_action != SEA_NONE && choice == 0) {