diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2022-07-05 11:31:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-05 02:31:49 -0700 |
| commit | d0835617facc98daf79318e26d41669bb2ce1a6b (patch) | |
| tree | be959e03888b70a0c8410280d2dcd65a97c367db /src/nvim/testdir | |
| parent | eb814bdca0bad2a68e111d59fae62f79b8dbeef1 (diff) | |
| download | rneovim-d0835617facc98daf79318e26d41669bb2ce1a6b.tar.gz rneovim-d0835617facc98daf79318e26d41669bb2ce1a6b.tar.bz2 rneovim-d0835617facc98daf79318e26d41669bb2ce1a6b.zip | |
fix(terminal): crash if TermClose deletes own buffer #19222
- Partially fixes #10386 except for the case where the alternate buffer
is the default, empty, first buffer created on startup. #vimlife
- TODO: port patches related to `can_unload_buffer`, maybe that fully
fixes #10386?
vim-patch:8.0.1732: crash when terminal API call deletes the buffer
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 660801d575..fcef57e47a 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -169,7 +169,9 @@ func Test_autocmd_bufunload_avoiding_SEGV_01() exe 'autocmd BufUnload <buffer> ' . (lastbuf + 1) . 'bwipeout!' augroup END - call assert_fails('edit bb.txt', 'E937:') + " Todo: check for E937 generated first + " call assert_fails('edit bb.txt', 'E937:') + call assert_fails('edit bb.txt', 'E517:') autocmd! test_autocmd_bufunload augroup! test_autocmd_bufunload @@ -540,7 +542,7 @@ func Test_three_windows() e Xtestje2 sp Xtestje1 call assert_fails('e', 'E937:') - call assert_equal('Xtestje2', expand('%')) + call assert_equal('Xtestje1', expand('%')) " Test changing buffers in a BufWipeout autocommand. If this goes wrong " there are ml_line errors and/or a Crash. @@ -563,7 +565,6 @@ func Test_three_windows() au! enew - bwipe! Xtestje1 call delete('Xtestje1') call delete('Xtestje2') call delete('Xtestje3') |