aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-23 10:13:56 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-09-23 15:58:01 +0200
commit22c83a4de95dc827048448e28f1df5663e2e5f24 (patch)
treee3a1cfc1ad8cae88692b40ec5c92420d584456dd /src
parentc3d24368a13d9d0f0b410e098a89056cb5e83c4f (diff)
downloadrneovim-22c83a4de95dc827048448e28f1df5663e2e5f24.tar.gz
rneovim-22c83a4de95dc827048448e28f1df5663e2e5f24.tar.bz2
rneovim-22c83a4de95dc827048448e28f1df5663e2e5f24.zip
swapfile: Always show swap dialog (E325)
If swapfile dialog prompts for input, it must be displayed to the user. fix #8840 fix #9027
Diffstat (limited to 'src')
-rw-r--r--src/nvim/memline.c1
1 files changed, 1 insertions, 0 deletions
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);