aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-08-21 09:25:48 +0200
committerGitHub <noreply@github.com>2018-08-21 09:25:48 +0200
commit0c9888cdbe800f1945823ec9affa3056b8feeeac (patch)
tree42d98c3817a3d59906654d168b332e456174385a /src/nvim/testdir
parent8872fce120b0d38d50254c82407038d40da84647 (diff)
downloadrneovim-0c9888cdbe800f1945823ec9affa3056b8feeeac.tar.gz
rneovim-0c9888cdbe800f1945823ec9affa3056b8feeeac.tar.bz2
rneovim-0c9888cdbe800f1945823ec9affa3056b8feeeac.zip
vim-patch:8.1.0110: file name not displayed with ":file" (#8878)
Problem: File name not displayed with ":file" when 'F' is in 'shortmess'. Solution: Always display the file name when there is no argument (Christian Brabandt, closes vim/vim#3070) https://github.com/vim/vim/commit/fc0896093c3b3e753859a5f929921933e7a2e6cd closes #8817 closes #8873
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_options.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index f0aec42ae1..e90a14c380 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -339,3 +339,17 @@ func Test_copy_winopt()
call assert_equal(4,&numberwidth)
bw!
endfunc
+
+func Test_shortmess_F()
+ new
+ call assert_match('\[No Name\]', execute('file'))
+ set shortmess+=F
+ call assert_match('\[No Name\]', execute('file'))
+ call assert_match('^\s*$', execute('file foo'))
+ call assert_match('foo', execute('file'))
+ set shortmess-=F
+ call assert_match('bar', execute('file bar'))
+ call assert_match('bar', execute('file'))
+ set shortmess&
+ bwipe
+endfunc