summaryrefslogtreecommitdiff
path: root/src/testdir/test_options.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-24 16:53:35 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-24 16:53:35 +0200
commitfc0896093c3b3e753859a5f929921933e7a2e6cd (patch)
tree5bbcf3b820898f7d369c451f5c2896c5d5ca0deb /src/testdir/test_options.vim
parent7cb6eecd32b0b51bd0a25df968386d0b09379afa (diff)
downloadvim-git-fc0896093c3b3e753859a5f929921933e7a2e6cd.tar.gz
patch 8.1.0110: file name not displayed with ":file"v8.1.0110
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 #3070)
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r--src/testdir/test_options.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index 167cb1ce0..460a569f5 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -400,3 +400,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