mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00:00
vim-patch:8.1.0466: autocmd test fails
Problem: Autocmd test fails.
Solution: Do call inchar() when flushing typeahead.
6a2633b00b
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user