]> granicus.if.org Git - vim/commitdiff
patch 8.0.1188: autocmd test fails on MS-Windows v8.0.1188
authorBram Moolenaar <Bram@vim.org>
Fri, 13 Oct 2017 20:33:32 +0000 (22:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 13 Oct 2017 20:33:32 +0000 (22:33 +0200)
Problem:    Autocmd test fails on MS-Windows.
Solution:   Give the buffer a name and find the buffer to be wiped out by
            name.

src/testdir/test_autocmd.vim
src/version.c

index eb13563e0aa0b90f00bdb970b91d6a719423d784..d0564f386601d5867e2ba65acded6b86c0f10588 100644 (file)
@@ -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_SessLoadPost()
         \ 'let v:swapchoice="e"',
         \ 'augroup test_autocmd_sessionload',
         \ 'autocmd!',
-        \ 'autocmd SessionLoadPost * 4bw!',
+        \ 'autocmd SessionLoadPost * exe bufnr("Xsomething") . "bw!"',
         \ 'augroup END',
        \ '',
        \ 'func WriteErrors()',
index f1ab8278a25756d80176c1b8485a669326b4310e..874203504270e78248b3d6bae86e58b181cc702f 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1188,
 /**/
     1187,
 /**/