diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-01-29 06:03:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 06:03:22 +0800 |
commit | af9a2a201d5e2bc178488a04c114ba6c1db4fa19 (patch) | |
tree | 5ef968d12383adaad8ca096116fc15946ea1d84a /src/nvim/testdir | |
parent | 98fddc1d4c6e961afe6ea03ff31ee38f44be746e (diff) | |
parent | aa5adef969f5f1ffcc3867200211fa236b569ae3 (diff) | |
download | rneovim-af9a2a201d5e2bc178488a04c114ba6c1db4fa19.tar.gz rneovim-af9a2a201d5e2bc178488a04c114ba6c1db4fa19.tar.bz2 rneovim-af9a2a201d5e2bc178488a04c114ba6c1db4fa19.zip |
Merge pull request #16951 from zeertzjq/vim-8.2.4007
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_mksession.vim | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_mksession.vim b/src/nvim/testdir/test_mksession.vim index 057895047d..a87691abf9 100644 --- a/src/nvim/testdir/test_mksession.vim +++ b/src/nvim/testdir/test_mksession.vim @@ -696,6 +696,36 @@ func Test_mksession_foldopt() set sessionoptions& endfunc +" Test for mksession with "help" but not "options" in 'sessionoptions' +func Test_mksession_help_noopt() + set sessionoptions-=options + set sessionoptions+=help + help + let fname = expand('%') + mksession! Xtest_mks.out + bwipe + + source Xtest_mks.out + call assert_equal('help', &buftype) + call assert_equal('help', &filetype) + call assert_equal(fname, expand('%')) + call assert_false(&modifiable) + call assert_true(&readonly) + + helpclose + help index + let fname = expand('%') + mksession! Xtest_mks.out + bwipe + + source Xtest_mks.out + call assert_equal('help', &buftype) + call assert_equal(fname, expand('%')) + + call delete('Xtest_mks.out') + set sessionoptions& +endfunc + " Test for mksession with window position func Test_mksession_winpos() if !has('gui_running') |