aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-20 10:05:02 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-21 19:07:50 +0800
commit1664e3d4bcc122e6a3b064a3fe20fdc163f6ae9d (patch)
tree050c5e32274e2b9c4bfb69fda5cdeb5b3e07ba00 /src/nvim/testdir
parent407be5975db5dd63671397676eef0279662c603d (diff)
downloadrneovim-1664e3d4bcc122e6a3b064a3fe20fdc163f6ae9d.tar.gz
rneovim-1664e3d4bcc122e6a3b064a3fe20fdc163f6ae9d.tar.bz2
rneovim-1664e3d4bcc122e6a3b064a3fe20fdc163f6ae9d.zip
vim-patch:8.2.2476: using freed memory when splitting window while closing buffer
Problem: Using freed memory when using an autocommand to split a window while a buffer is being closed. Solution: Disallow splitting when the buffer has b_locked_split set. https://github.com/vim/vim/commit/983d83ff1cd796ff321074335fa53fbe7ac45a46 Put the error message in window.c. Cherry-pick a memory leak fix from Vim patch 8.2.0399. Test still fails.
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_autocmd.vim11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim
index b80b564470..7320750cab 100644
--- a/src/nvim/testdir/test_autocmd.vim
+++ b/src/nvim/testdir/test_autocmd.vim
@@ -2717,17 +2717,14 @@ endfunc
" Fuzzer found some strange combination that caused a crash.
func Test_autocmd_normal_mess()
- " TODO: why does this hang on Windows?
- CheckNotMSWindows
-
augroup aucmd_normal_test
au BufLeave,BufWinLeave,BufHidden,BufUnload,BufDelete,BufWipeout * norm 7q/qc
augroup END
" Nvim has removed :open
- " o4
- e4
+ " call assert_fails('o4', 'E1159')
+ call assert_fails('e4', 'E1159')
silent! H
- e xx
+ call assert_fails('e xx', 'E1159')
normal G
augroup aucmd_normal_test
@@ -2749,7 +2746,7 @@ func Test_autocmd_vimgrep()
au QuickfixCmdPre,BufNew,BufDelete,BufReadCmd * sb
au QuickfixCmdPre,BufNew,BufDelete,BufReadCmd * q9
augroup END
- " TODO: if this is executed directly valgrind reports errors
+ %bwipe!
call assert_fails('lv?a?', 'E926:')
augroup aucmd_vimgrep