refactor(misc1): move way beep functions elsewhere

This commit is contained in:
Björn Linse
2021-12-10 17:11:45 +01:00
parent 6dbd4f3787
commit c88555418a
7 changed files with 51 additions and 48 deletions

View File

@@ -458,6 +458,15 @@ void flush_buffers(flush_buffers_T flush_typeahead)
}
}
/// flush map and typeahead buffers and give a warning for an error
void beep_flush(void)
{
if (emsg_silent == 0) {
flush_buffers(FLUSH_MINIMAL);
vim_beep(BO_ERROR);
}
}
/*
* The previous contents of the redo buffer is kept in old_redobuffer.
* This is used for the CTRL-O <.> command in insert mode.