diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-11 16:15:12 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-02-11 19:03:28 +0100 |
commit | 82a9051857417e8cee3b7c5652fb2dc8077ee653 (patch) | |
tree | c38728b99b656e7eb0f352fd74ae38016880d2a4 /src | |
parent | 5c05cd43cb44884f31972e6d526f275721b22ff7 (diff) | |
download | rneovim-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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 4 |
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()', |