diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-09 17:18:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-09 17:18:52 +0100 |
commit | 1e15e61188e14ba67060c09d4c74e9b587016230 (patch) | |
tree | 2f718ee65b5bc0dc67021e6a40b3613c56ce5ebd /src/testdir/test_mksession.vim | |
parent | d1c1c823892d0713065934256f48e7f4e6609f99 (diff) | |
download | vim-git-1e15e61188e14ba67060c09d4c74e9b587016230.tar.gz |
patch 8.1.2275: using "seesion" looks like a mistakev8.1.2275
Problem: Using "seesion" looks like a mistake.
Solution: Use an underscore to make the function sort first.
Diffstat (limited to 'src/testdir/test_mksession.vim')
-rw-r--r-- | src/testdir/test_mksession.vim | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/src/testdir/test_mksession.vim b/src/testdir/test_mksession.vim index 3fc5c435c..d713da73e 100644 --- a/src/testdir/test_mksession.vim +++ b/src/testdir/test_mksession.vim @@ -9,6 +9,29 @@ CheckFeature mksession source shared.vim source term_util.vim +" Test for storing global and local argument list in a session file +" This one must be done first. +func Test__mksession_arglocal() + enew | only + n a b c + new + arglocal + mksession! Xtest_mks.out + + %bwipe! + %argdelete + argglobal + source Xtest_mks.out + call assert_equal(2, winnr('$')) + call assert_equal(2, arglistid(1)) + call assert_equal(0, arglistid(2)) + + %bwipe! + %argdelete + argglobal + call delete('Xtest_mks.out') +endfunc + func Test_mksession() tabnew let wrap_save = &wrap @@ -598,28 +621,6 @@ func Test_mksession_slash() set sessionoptions& endfunc -" Test for storing global and local argument list in a session file -func Test_mkseesion_arglocal() - enew | only - n a b c - new - arglocal - mksession! Xtest_mks.out - - %bwipe! - %argdelete - argglobal - source Xtest_mks.out - call assert_equal(2, winnr('$')) - call assert_equal(2, arglistid(1)) - call assert_equal(0, arglistid(2)) - - %bwipe! - %argdelete - argglobal - call delete('Xtest_mks.out') -endfunc - " Test for changing directory to the session file directory func Test_mksession_sesdir() call mkdir('Xproj') |