diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-26 22:39:13 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-27 06:12:52 +0800 |
| commit | d813ef0097eb781baeba5d458dcb0507e2f61040 (patch) | |
| tree | b32ca8de44a1e8fd4507d3b5402e055b1eadbb96 /src/nvim/testdir/test_bufline.vim | |
| parent | 45c23a757c6fc601a76a92f052f55eb3ed469364 (diff) | |
| download | rneovim-d813ef0097eb781baeba5d458dcb0507e2f61040.tar.gz rneovim-d813ef0097eb781baeba5d458dcb0507e2f61040.tar.bz2 rneovim-d813ef0097eb781baeba5d458dcb0507e2f61040.zip | |
vim-patch:9.0.0276: 'buftype' values not sufficiently tested
Problem: 'buftype' values not sufficiently tested.
Solution: Add and extend tests with 'buftype' values. (closes vim/vim#10988)
https://github.com/vim/vim/commit/93f72cc119c796f1ccb75468ef9e446cbfb41e9b
"terminal" and "popup" buffer types cannot be tested, and commenting
them out causes an error, so just remove them.
Diffstat (limited to 'src/nvim/testdir/test_bufline.vim')
| -rw-r--r-- | src/nvim/testdir/test_bufline.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_bufline.vim b/src/nvim/testdir/test_bufline.vim index 939147b83b..3b5bcbce89 100644 --- a/src/nvim/testdir/test_bufline.vim +++ b/src/nvim/testdir/test_bufline.vim @@ -187,4 +187,24 @@ func Test_deletebufline_select_mode() bwipe! endfunc +func Test_setbufline_startup_nofile() + let before =<< trim [CODE] + set shortmess+=F + file Xresult + set buftype=nofile + call setbufline('', 1, 'success') + [CODE] + let after =<< trim [CODE] + set buftype= + write + quit + [CODE] + + if !RunVim(before, after, '--clean') + return + endif + call assert_equal(['success'], readfile('Xresult')) + call delete('Xresult') +endfunc + " vim: shiftwidth=2 sts=2 expandtab |