mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-patch:8.0.0258
Problem: mksession test leaves file behind.
Solution: Delete the file. Rename files to start with "X".
c9b56b2ceb
This commit is contained in:
@@ -21,7 +21,7 @@ func Test_mksession()
|
|||||||
\ 'a<> <20> two multiByte characters',
|
\ 'a<> <20> two multiByte characters',
|
||||||
\ 'A<><41><EFBFBD> three mulTibyte characters'
|
\ 'A<><41><EFBFBD> three mulTibyte characters'
|
||||||
\ ])
|
\ ])
|
||||||
let tmpfile = tempname()
|
let tmpfile = 'Xtemp'
|
||||||
exec 'w! ' . tmpfile
|
exec 'w! ' . tmpfile
|
||||||
/^start:
|
/^start:
|
||||||
set wrap
|
set wrap
|
||||||
@@ -62,8 +62,8 @@ func Test_mksession()
|
|||||||
norm! j016|3zl
|
norm! j016|3zl
|
||||||
split
|
split
|
||||||
call wincol()
|
call wincol()
|
||||||
mksession! test_mks.out
|
mksession! Xtest_mks.out
|
||||||
let li = filter(readfile('test_mks.out'), 'v:val =~# "\\(^ *normal! 0\\|^ *exe ''normal!\\)"')
|
let li = filter(readfile('Xtest_mks.out'), 'v:val =~# "\\(^ *normal! 0\\|^ *exe ''normal!\\)"')
|
||||||
let expected = [
|
let expected = [
|
||||||
\ 'normal! 016|',
|
\ 'normal! 016|',
|
||||||
\ 'normal! 016|',
|
\ 'normal! 016|',
|
||||||
@@ -95,7 +95,7 @@ func Test_mksession()
|
|||||||
call assert_equal(expected, li)
|
call assert_equal(expected, li)
|
||||||
tabclose!
|
tabclose!
|
||||||
|
|
||||||
call delete('test_mks.out')
|
call delete('Xtest_mks.out')
|
||||||
call delete(tmpfile)
|
call delete(tmpfile)
|
||||||
let &wrap = wrap_save
|
let &wrap = wrap_save
|
||||||
endfunc
|
endfunc
|
||||||
@@ -103,10 +103,10 @@ endfunc
|
|||||||
func Test_mksession_winheight()
|
func Test_mksession_winheight()
|
||||||
new
|
new
|
||||||
set winheight=10 winminheight=2
|
set winheight=10 winminheight=2
|
||||||
mksession! test_mks.out
|
mksession! Xtest_mks.out
|
||||||
source test_mks.out
|
source Xtest_mks.out
|
||||||
|
|
||||||
" call delete('test_mks.out')
|
call delete('Xtest_mks.out')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Verify that arglist is stored correctly to the session file.
|
" Verify that arglist is stored correctly to the session file.
|
||||||
|
@@ -694,7 +694,7 @@ static const int included_patches[] = {
|
|||||||
// 261,
|
// 261,
|
||||||
// 260 NA
|
// 260 NA
|
||||||
259,
|
259,
|
||||||
// 258,
|
258,
|
||||||
// 257 NA
|
// 257 NA
|
||||||
// 256,
|
// 256,
|
||||||
// 255,
|
// 255,
|
||||||
|
Reference in New Issue
Block a user