aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-11 16:15:12 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-02-11 19:03:28 +0100
commit82a9051857417e8cee3b7c5652fb2dc8077ee653 (patch)
treec38728b99b656e7eb0f352fd74ae38016880d2a4
parent5c05cd43cb44884f31972e6d526f275721b22ff7 (diff)
downloadrneovim-82a9051857417e8cee3b7c5652fb2dc8077ee653.tar.gz
rneovim-82a9051857417e8cee3b7c5652fb2dc8077ee653.tar.bz2
rneovim-82a9051857417e8cee3b7c5652fb2dc8077ee653.zip
vim-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. https://github.com/vim/vim/commit/1d68d9b2bd60d848552c08763e590edde16056c9
-rw-r--r--src/nvim/testdir/test_autocmd.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim
index 9fc36f7e3a..24651b75e1 100644
--- a/src/nvim/testdir/test_autocmd.vim
+++ b/src/nvim/testdir/test_autocmd.vim
@@ -353,7 +353,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!
@@ -361,7 +363,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()',