From 22c83a4de95dc827048448e28f1df5663e2e5f24 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 23 Sep 2018 10:13:56 +0200 Subject: swapfile: Always show swap dialog (E325) If swapfile dialog prompts for input, it must be displayed to the user. fix #8840 fix #9027 --- src/nvim/memline.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 5602a29f50..ec0238e7c9 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -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); -- cgit