diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-16 20:29:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-16 20:29:44 +0200 |
commit | eda652215abf696f86b872888945a2d2dd8c7192 (patch) | |
tree | 48e30bac1dc042b3dac7e88d20f43e32cec43b8e /src/testdir/test_options.vim | |
parent | 45dd07f10af9bea86f8df77e92788209e209fdab (diff) | |
download | vim-git-eda652215abf696f86b872888945a2d2dd8c7192.tar.gz |
patch 8.1.1334: when buffer is hidden "F" in 'shortmess' is not usedv8.1.1334
Problem: When buffer is hidden "F" in 'shortmess' is not used.
Solution: Check the "F" flag in 'shortmess' when the buffer is already
loaded. (Jason Franklin) Add test_getvalue() to be able to test
this.
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r-- | src/testdir/test_options.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 6cc0c1a18..c5dbb9f4c 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -470,13 +470,19 @@ func Test_shortmess_F2() call assert_match('file2', execute('bn', '')) set shortmess+=F call assert_true(empty(execute('bn', ''))) + call assert_false(test_getvalue('need_fileinfo')) call assert_true(empty(execute('bn', ''))) + call assert_false(test_getvalue('need_fileinfo')) set hidden call assert_true(empty(execute('bn', ''))) + call assert_false(test_getvalue('need_fileinfo')) call assert_true(empty(execute('bn', ''))) + call assert_false(test_getvalue('need_fileinfo')) set nohidden call assert_true(empty(execute('bn', ''))) + call assert_false(test_getvalue('need_fileinfo')) call assert_true(empty(execute('bn', ''))) + call assert_false(test_getvalue('need_fileinfo')) set shortmess& call assert_match('file1', execute('bn', '')) call assert_match('file2', execute('bn', '')) |