aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-03-13 13:13:31 +0900
committerJustin M. Keyes <justinkz@gmail.com>2016-03-17 00:07:38 -0400
commit77a7ca458bc3e6e140149d1f2bf97593e2d502cd (patch)
treec16313c43e047a06d91636044d8957187bb03a27 /src/nvim/ex_cmds.c
parentc94575fded78be1c9fca8b7d193c9bbb30a1dc95 (diff)
downloadrneovim-77a7ca458bc3e6e140149d1f2bf97593e2d502cd.tar.gz
rneovim-77a7ca458bc3e6e140149d1f2bf97593e2d502cd.tar.bz2
rneovim-77a7ca458bc3e6e140149d1f2bf97593e2d502cd.zip
'shortmess': Add "F" flag. #4446
Add "Don't give the file editing message" flag in shortmess option. Add the UI tests by @fmoralesc Fix the changes for Vim 7.4.1570
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c11
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;
}