aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_options.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-08-24 10:34:48 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-09-21 22:35:09 +0200
commitefbc33cbbc030df3478d051502d1c14c1c73b3df (patch)
treeb4788f26f3ff6e6bbd01075e0c7499dcc549878f /src/nvim/testdir/test_options.vim
parent4fa3492a6fcba4e58639ec1039b18e883576bdd3 (diff)
downloadrneovim-efbc33cbbc030df3478d051502d1c14c1c73b3df.tar.gz
rneovim-efbc33cbbc030df3478d051502d1c14c1c73b3df.tar.bz2
rneovim-efbc33cbbc030df3478d051502d1c14c1c73b3df.zip
vim-patch:8.1.0310: file info msg with 'F' in 'shortmess'
Problem: File info message not always suppressed with 'F' in 'shortmess'. (Asheq Imran) Solution: Save and restore msg_silent. (Christian Brabandt, closes vim/vim#3221) https://github.com/vim/vim/commit/2f0f871159b2cba862fcd41edab65b17da75c422 ref #8840 ref #9027
Diffstat (limited to 'src/nvim/testdir/test_options.vim')
-rw-r--r--src/nvim/testdir/test_options.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 62d40f71af..921e9fd9f4 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -355,3 +355,24 @@ func Test_shortmess_F()
set shortmess&
bwipe
endfunc
+
+func Test_shortmess_F2()
+ e file1
+ e file2
+ call assert_match('file1', execute('bn', ''))
+ call assert_match('file2', execute('bn', ''))
+ set shortmess+=F
+ call assert_true(empty(execute('bn', '')))
+ call assert_true(empty(execute('bn', '')))
+ set hidden
+ call assert_true(empty(execute('bn', '')))
+ call assert_true(empty(execute('bn', '')))
+ set nohidden
+ call assert_true(empty(execute('bn', '')))
+ call assert_true(empty(execute('bn', '')))
+ set shortmess&
+ call assert_match('file1', execute('bn', ''))
+ call assert_match('file2', execute('bn', ''))
+ bwipe
+ bwipe
+endfunc