mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07: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:
parent
5bb2a19417
commit
43da7ea27b
@ -21,7 +21,7 @@ func Test_mksession()
|
||||
\ 'aä Ä two multiByte characters',
|
||||
\ 'Aäöü three mulTibyte characters'
|
||||
\ ])
|
||||
let tmpfile = tempname()
|
||||
let tmpfile = 'Xtemp'
|
||||
exec 'w! ' . tmpfile
|
||||
/^start:
|
||||
set wrap
|
||||
@ -62,8 +62,8 @@ func Test_mksession()
|
||||
norm! j016|3zl
|
||||
split
|
||||
call wincol()
|
||||
mksession! test_mks.out
|
||||
let li = filter(readfile('test_mks.out'), 'v:val =~# "\\(^ *normal! 0\\|^ *exe ''normal!\\)"')
|
||||
mksession! Xtest_mks.out
|
||||
let li = filter(readfile('Xtest_mks.out'), 'v:val =~# "\\(^ *normal! 0\\|^ *exe ''normal!\\)"')
|
||||
let expected = [
|
||||
\ 'normal! 016|',
|
||||
\ 'normal! 016|',
|
||||
@ -95,7 +95,7 @@ func Test_mksession()
|
||||
call assert_equal(expected, li)
|
||||
tabclose!
|
||||
|
||||
call delete('test_mks.out')
|
||||
call delete('Xtest_mks.out')
|
||||
call delete(tmpfile)
|
||||
let &wrap = wrap_save
|
||||
endfunc
|
||||
@ -103,10 +103,10 @@ endfunc
|
||||
func Test_mksession_winheight()
|
||||
new
|
||||
set winheight=10 winminheight=2
|
||||
mksession! test_mks.out
|
||||
source test_mks.out
|
||||
mksession! Xtest_mks.out
|
||||
source Xtest_mks.out
|
||||
|
||||
" call delete('test_mks.out')
|
||||
call delete('Xtest_mks.out')
|
||||
endfunc
|
||||
|
||||
" Verify that arglist is stored correctly to the session file.
|
||||
|
@ -694,7 +694,7 @@ static const int included_patches[] = {
|
||||
// 261,
|
||||
// 260 NA
|
||||
259,
|
||||
// 258,
|
||||
258,
|
||||
// 257 NA
|
||||
// 256,
|
||||
// 255,
|
||||
|
Loading…
Reference in New Issue
Block a user