Skip to content

Commit 1d68d9b

Browse files
committed
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.
1 parent 8065cf2 commit 1d68d9b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/testdir/test_autocmd.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,15 +352,17 @@ endfunc
352352
" Closing a window might cause an endless loop
353353
" E814 for older Vims
354354
func Test_autocmd_bufwipe_in_SessLoadPost()
355+
edit Xtest
355356
tabnew
357+
file Xsomething
356358
set noswapfile
357359
mksession!
358360

359361
let content = ['set nocp noswapfile',
360362
\ 'let v:swapchoice="e"',
361363
\ 'augroup test_autocmd_sessionload',
362364
\ 'autocmd!',
363-
\ 'autocmd SessionLoadPost * 4bw!',
365+
\ 'autocmd SessionLoadPost * exe bufnr("Xsomething") . "bw!"',
364366
\ 'augroup END',
365367
\ '',
366368
\ 'func WriteErrors()',

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1188,
764766
/**/
765767
1187,
766768
/**/

0 commit comments

Comments
 (0)