Merge #9034 'swapfile: always show dialog'

This commit is contained in:
Justin M. Keyes
2018-09-23 18:51:39 +02:00
committed by GitHub
7 changed files with 282 additions and 123 deletions

View File

@@ -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);

View File

@@ -1269,7 +1269,8 @@ static void normal_redraw(NormalState *s)
xfree(p);
}
if (need_fileinfo) { // show file info after redraw
// show fileinfo after redraw
if (need_fileinfo && !shortmess(SHM_FILEINFO)) {
fileinfo(false, true, false);
need_fileinfo = false;
}