# HG changeset patch # User Christian Brabandt # Date 1507927505 -7200 # Node ID 27a2fc3986719639016e7b62c40165f8c3476f5d # Parent f3ce25ab33e33c669a5c813389dd44d718484ad6 patch 8.0.1188: autocmd test fails on MS-Windows commit https://github.com/vim/vim/commit/1d68d9b2bd60d848552c08763e590edde16056c9 Author: Bram Moolenaar Date: Fri Oct 13 22:33:32 2017 +0200 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. diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -352,7 +352,9 @@ 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! @@ -360,7 +362,7 @@ func Test_autocmd_bufwipe_in_SessLoadPos \ 'let v:swapchoice="e"', \ 'augroup test_autocmd_sessionload', \ 'autocmd!', - \ 'autocmd SessionLoadPost * 4bw!', + \ 'autocmd SessionLoadPost * exe bufnr("Xsomething") . "bw!"', \ 'augroup END', \ '', \ 'func WriteErrors()', diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -762,6 +762,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1188, +/**/ 1187, /**/ 1186,