diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-03-17 00:23:38 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-03-17 00:23:38 -0400 |
commit | d7511f5cdefa8075ca8e95915712edb292f5a185 (patch) | |
tree | 054bd7a88bba554f557440ee23fe2e79b276950b /src/nvim/ex_cmds.c | |
parent | c94575fded78be1c9fca8b7d193c9bbb30a1dc95 (diff) | |
parent | 5a9d3be54cce2f21d5f76a4bc5ebef08927b1988 (diff) | |
download | rneovim-d7511f5cdefa8075ca8e95915712edb292f5a185.tar.gz rneovim-d7511f5cdefa8075ca8e95915712edb292f5a185.tar.bz2 rneovim-d7511f5cdefa8075ca8e95915712edb292f5a185.zip |
Merge #4446
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index decb5e95bc..5ea5beb478 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1506,8 +1506,11 @@ void ex_file(exarg_T *eap) if (rename_buffer(eap->arg) == FAIL) return; } - /* print full file name if :cd used */ - fileinfo(FALSE, FALSE, eap->forceit); + + if (!shortmess(SHM_FILEINFO)) { + // print full file name if :cd used + fileinfo(false, false, eap->forceit); + } } /* @@ -2483,7 +2486,9 @@ do_ecmd ( msg_scroll = msg_scroll_save; msg_scrolled_ign = TRUE; - fileinfo(FALSE, TRUE, FALSE); + if (!shortmess(SHM_FILEINFO)) { + fileinfo(false, true, false); + } msg_scrolled_ign = FALSE; } |