Permalink
Browse files

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.
  • Loading branch information...
brammool committed Oct 13, 2017
1 parent 8065cf2 commit 1d68d9b2bd60d848552c08763e590edde16056c9
Showing with 5 additions and 1 deletion.
  1. +3 −1 src/testdir/test_autocmd.vim
  2. +2 −0 src/version.c
@@ -352,15 +352,17 @@ endfunc
" Closing a window might cause an endless loop
" E814 for older Vims
func Test_autocmd_bufwipe_in_SessLoadPost()
edit Xtest
tabnew
file Xsomething
set noswapfile
mksession!
let content = ['set nocp noswapfile',
\ 'let v:swapchoice="e"',
\ 'augroup test_autocmd_sessionload',
\ 'autocmd!',
\ 'autocmd SessionLoadPost * 4bw!',
\ 'autocmd SessionLoadPost * exe bufnr("Xsomething") . "bw!"',
\ 'augroup END',
\ '',
\ 'func WriteErrors()',
View
@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1188,
/**/
1187,
/**/

0 comments on commit 1d68d9b

Please sign in to comment.