From 1a07044c1c828edda3e24828782665947fe68049 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 26 Jul 2022 11:53:17 +0800 Subject: revert: "vim-patch:9.0.0061: ml_get error with nested autocommand" (#19509) This reverts commit 6cee15da7235b6ba9c428ee43346415fe6a64e6c. Port this again when https://github.com/vim/vim/issues/10780 is fixed. --- src/nvim/testdir/test_autocmd.vim | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index ed439ff6ec..438851a0ad 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -2170,25 +2170,6 @@ func Test_autocmd_nested() call assert_fails('au WinNew * nested nested echo bad', 'E983:') endfunc -func Test_autocmd_nested_cursor_invalid() - set laststatus=0 - copen - cclose - call setline(1, ['foo', 'bar', 'baz']) - 3 - augroup nested_inv - autocmd User foo ++nested copen - autocmd BufAdd * let &laststatus = 2 - &laststatus - augroup END - doautocmd User foo - - augroup nested_inv - au! - augroup END - set laststatus& - bwipe! -endfunc - func Test_autocmd_once() " Without ++once WinNew triggers twice let g:did_split = 0 -- cgit