aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-22 18:53:16 +0200
committerGitHub <noreply@github.com>2018-09-22 18:53:16 +0200
commit2b06c32a230d4e2791952be82bf345c5d2da343d (patch)
tree7b729f46a574b9847b428b589d56241af6d8f4d3 /src/nvim/testdir
parentc236e80cf3dfae6df5c43ecfb19c7629c9884f7b (diff)
parent28b5a637b57040c0e045cb2ad57bdfbd3881c8cb (diff)
downloadrneovim-2b06c32a230d4e2791952be82bf345c5d2da343d.tar.gz
rneovim-2b06c32a230d4e2791952be82bf345c5d2da343d.tar.bz2
rneovim-2b06c32a230d4e2791952be82bf345c5d2da343d.zip
Merge #8898 from justinmk/vim-8.1.0310
vim-patch:8.1.0310: file info msg with 'F' in 'shortmess'
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/setup.vim1
-rw-r--r--src/nvim/testdir/test_options.vim24
2 files changed, 25 insertions, 0 deletions
diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim
index e1006fda3a..c7c3b378cc 100644
--- a/src/nvim/testdir/setup.vim
+++ b/src/nvim/testdir/setup.vim
@@ -15,6 +15,7 @@ set nrformats+=octal
set nohidden smarttab noautoindent noautoread complete-=i noruler noshowcmd
set listchars=eol:$
set fillchars=vert:\|,fold:-
+set shortmess-=F
" Prevent Nvim log from writing to stderr.
let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 62d40f71af..3e0703f845 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -355,3 +355,27 @@ func Test_shortmess_F()
set shortmess&
bwipe
endfunc
+
+func Test_shortmess_F2()
+ e file1
+ e file2
+ " Accommodate Nvim default.
+ set shortmess-=F
+ 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', '')))
+ " Accommodate Nvim default.
+ set shortmess-=F
+ call assert_match('file1', execute('bn', ''))
+ call assert_match('file2', execute('bn', ''))
+ bwipe
+ bwipe
+endfunc