diff options
| author | Grzegorz Milka <grzegorzmilka@gmail.com> | 2016-10-23 00:25:16 +0200 |
|---|---|---|
| committer | Grzegorz Milka <grzegorzmilka@gmail.com> | 2016-10-23 00:37:13 +0200 |
| commit | c5c8a821341b71ae29786c97df7930a9581f7ab7 (patch) | |
| tree | 8d7745d92badd0aa8c64662b5ad15b1ae69d2c3d /src/nvim/testdir/test_tabpage.vim | |
| parent | d7b942b54e4bae5510549ceffb3280e89871cff5 (diff) | |
| download | rneovim-c5c8a821341b71ae29786c97df7930a9581f7ab7.tar.gz rneovim-c5c8a821341b71ae29786c97df7930a9581f7ab7.tar.bz2 rneovim-c5c8a821341b71ae29786c97df7930a9581f7ab7.zip | |
vim-patch:7.4.2309
Problem: Crash when doing tabnext in a BufUnload autocmd. (Dominique Pelle)
Solution: When detecting that the tab page changed, don't just abort but
delete the window where w_buffer is NULL.
https://github.com/vim/vim/commit/11fbc2866ccc11b4dd1726abdaf582a78ef3f743
Diffstat (limited to 'src/nvim/testdir/test_tabpage.vim')
| -rw-r--r-- | src/nvim/testdir/test_tabpage.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_tabpage.vim b/src/nvim/testdir/test_tabpage.vim index f1c41e967b..7bdea0b186 100644 --- a/src/nvim/testdir/test_tabpage.vim +++ b/src/nvim/testdir/test_tabpage.vim @@ -218,4 +218,18 @@ function Test_tabpage_with_tab_modifier() bw! endfunction +func Test_tabnext_on_buf_unload() + " This once caused a crash + new + tabedit + tabfirst + au BufUnload <buffer> tabnext + q + + while tabpagenr('$') > 1 + quit + endwhile +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |