mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
swapfile: Always show swap dialog (E325)
If swapfile dialog prompts for input, it must be displayed to the user. fix #8840 fix #9027
This commit is contained in:
@@ -535,6 +535,7 @@ void ml_open_file(buf_T *buf)
|
||||
void check_need_swap(int newfile)
|
||||
{
|
||||
int old_msg_silent = msg_silent; // might be reset by an E325 message
|
||||
msg_silent = 0; // If swap dialog prompts for input, user needs to see it!
|
||||
|
||||
if (curbuf->b_may_swap && (!curbuf->b_p_ro || !newfile)) {
|
||||
ml_open_file(curbuf);
|
||||
|
Reference in New Issue
Block a user