diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-24 10:34:48 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-09-21 22:35:09 +0200 |
commit | efbc33cbbc030df3478d051502d1c14c1c73b3df (patch) | |
tree | b4788f26f3ff6e6bbd01075e0c7499dcc549878f /src/nvim/buffer.c | |
parent | 4fa3492a6fcba4e58639ec1039b18e883576bdd3 (diff) | |
download | rneovim-efbc33cbbc030df3478d051502d1c14c1c73b3df.tar.gz rneovim-efbc33cbbc030df3478d051502d1c14c1c73b3df.tar.bz2 rneovim-efbc33cbbc030df3478d051502d1c14c1c73b3df.zip |
vim-patch:8.1.0310: file info msg with 'F' in 'shortmess'
Problem: File info message not always suppressed with 'F' in 'shortmess'.
(Asheq Imran)
Solution: Save and restore msg_silent. (Christian Brabandt, closes vim/vim#3221)
https://github.com/vim/vim/commit/2f0f871159b2cba862fcd41edab65b17da75c422
ref #8840
ref #9027
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 6735ae696f..a28d9774ab 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -884,7 +884,15 @@ void 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; + if (old_tw != curbuf->b_p_tw) { check_colorcolumn(curwin); } |