aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-22 18:53:16 +0200
committerGitHub <noreply@github.com>2018-09-22 18:53:16 +0200
commit2b06c32a230d4e2791952be82bf345c5d2da343d (patch)
tree7b729f46a574b9847b428b589d56241af6d8f4d3 /src/nvim/buffer.c
parentc236e80cf3dfae6df5c43ecfb19c7629c9884f7b (diff)
parent28b5a637b57040c0e045cb2ad57bdfbd3881c8cb (diff)
downloadrneovim-2b06c32a230d4e2791952be82bf345c5d2da343d.tar.gz
rneovim-2b06c32a230d4e2791952be82bf345c5d2da343d.tar.bz2
rneovim-2b06c32a230d4e2791952be82bf345c5d2da343d.zip
Merge #8898 from justinmk/vim-8.1.0310
vim-patch:8.1.0310: file info msg with 'F' in 'shortmess'
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c8
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);
}