diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-21 18:50:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-21 18:50:18 +0200 |
commit | 2f0f871159b2cba862fcd41edab65b17da75c422 (patch) | |
tree | d8dbf0ef961c3f56a0b3ed74b16cee56e99821d2 /src/buffer.c | |
parent | 7feb35e7782907b44659a2748ff5d7489deeed74 (diff) |
patch 8.1.0310: file info msg not always suppressed with 'F' in 'shortmess'v8.1.0310
Problem: File info message not always suppressed with 'F' in 'shortmess'.
(Asheq Imran)
Solution: Save and restore msg_silent. (Christian Brabandt, closes #3221)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 6bcd28b36c..2ca131d23e 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1035,7 +1035,14 @@ handle_swap_exists(bufref_T *old_curbuf) buf = old_curbuf->br_buf; if (buf != NULL) { + int old_msg_silent = msg_silent; + + if (shortmess(SHM_FILEINFO)) + msg_silent = 1; // prevent fileinfo message enter_buffer(buf); + // restore msg_silent, so that the command line will be shown + msg_silent = old_msg_silent; + # ifdef FEAT_SYN_HL if (old_tw != curbuf->b_p_tw) check_colorcolumn(curwin); |