mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:8.1.2275: using "seesion" looks like a mistake
Problem: Using "seesion" looks like a mistake.
Solution: Use an underscore to make the function sort first.
1e15e61188
This commit is contained in:
@@ -9,6 +9,29 @@ endif
|
|||||||
source shared.vim
|
source shared.vim
|
||||||
source term_util.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()
|
func Test_mksession()
|
||||||
tabnew
|
tabnew
|
||||||
let wrap_save = &wrap
|
let wrap_save = &wrap
|
||||||
@@ -359,28 +382,6 @@ func Test_mksession_slash()
|
|||||||
set sessionoptions&
|
set sessionoptions&
|
||||||
endfunc
|
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
|
" Test for changing directory to the session file directory
|
||||||
func Test_mksession_sesdir()
|
func Test_mksession_sesdir()
|
||||||
call mkdir('Xproj')
|
call mkdir('Xproj')
|
||||||
|
Reference in New Issue
Block a user