summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-13 22:33:32 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-13 22:33:32 +0200
commit1d68d9b2bd60d848552c08763e590edde16056c9 (patch)
treefa68095e8316749d0eb3cce30b16f833e71c879b
parent8065cf2bfba93a8aeed29f591152edeb0841bff6 (diff)
downloadvim-1d68d9b2bd60d848552c08763e590edde16056c9.zip
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.
-rw-r--r--src/testdir/test_autocmd.vim4
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index eb13563e0..d0564f386 100644
--- 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_SessLoadPost()
\ '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
index f1ab8278a..874203504 100644
--- 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,