diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-04 21:33:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-04 21:33:09 +0200 |
commit | f9e687e0681a250e1549ab27b6c7ef2c500395e3 (patch) | |
tree | df8b0ef0bc7020120472d3f1752d27ff8e869f73 /src/testdir/test_autocmd.vim | |
parent | c8fe338d64cc6183c03d4c12b1e036a7745e2932 (diff) |
patch 7.4.2328v7.4.2328
Problem: Crash when BufWinLeave autocmd goes to another tab page. (Hirohito
Higashi)
Solution: Make close_buffer() go back to the right window.
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r-- | src/testdir/test_autocmd.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 43aa8d48dd..c029ca1bd6 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -83,6 +83,16 @@ function Test_autocmd_bufunload_with_tabnext() quit endfunc +function Test_autocmd_bufwinleave_with_tabfirst() + tabedit + augroup sample + autocmd! + autocmd BufWinLeave <buffer> tabfirst + augroup END + call setline(1, ['a', 'b', 'c']) + edit! a.txt +endfunc + " SEGV occurs in older versions. (At least 7.4.2321 or older) function Test_autocmd_bufunload_avoiding_SEGV_01() split aa.txt |