vim-patch:8.0.1188: autocmd test fails on MS-Windows

Problem:    Autocmd test fails on MS-Windows.
Solution:   Give the buffer a name and find the buffer to be wiped out by
            name.

1d68d9b2bd
This commit is contained in:
Justin M. Keyes 2018-02-11 16:15:12 +01:00
parent 5c05cd43cb
commit 82a9051857

View File

@ -353,7 +353,9 @@ endfunc
" Closing a window might cause an endless loop " Closing a window might cause an endless loop
" E814 for older Vims " E814 for older Vims
func Test_autocmd_bufwipe_in_SessLoadPost() func Test_autocmd_bufwipe_in_SessLoadPost()
edit Xtest
tabnew tabnew
file Xsomething
set noswapfile set noswapfile
mksession! mksession!
@ -361,7 +363,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost()
\ 'let v:swapchoice="e"', \ 'let v:swapchoice="e"',
\ 'augroup test_autocmd_sessionload', \ 'augroup test_autocmd_sessionload',
\ 'autocmd!', \ 'autocmd!',
\ 'autocmd SessionLoadPost * 4bw!', \ 'autocmd SessionLoadPost * exe bufnr("Xsomething") . "bw!"',
\ 'augroup END', \ 'augroup END',
\ '', \ '',
\ 'func WriteErrors()', \ 'func WriteErrors()',