diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2022-01-07 17:33:01 +0000 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2022-02-03 15:03:08 +0000 |
commit | 6820420d3e7c153868e21d917596b3d1a19fa937 (patch) | |
tree | 3617a7baf1806b25fdeaf69c2dc66f3f3dcd69ac /src/nvim/testdir | |
parent | d984a8d130c2063dcd33ae52f98c22fe3567cd18 (diff) | |
download | rneovim-6820420d3e7c153868e21d917596b3d1a19fa937.tar.gz rneovim-6820420d3e7c153868e21d917596b3d1a19fa937.tar.bz2 rneovim-6820420d3e7c153868e21d917596b3d1a19fa937.zip |
vim-patch:8.2.4028: ml_get error with :doautoall and Visual area
Problem: ml_get error with :doautoall and Visual area. (Sean Dewar)
Solution: Disable Visual mode while executing autocommands.
https://github.com/vim/vim/commit/cb1956d6f2aece8ad93e19e5d4c7e0b5e405f056
This should also fix #16937 for nvim_buf_call, so test for it.
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 231ab2acf1..433410248b 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -2543,6 +2543,16 @@ func Test_close_autocmd_tab() %bwipe! endfunc +func Test_Visual_doautoall_redraw() + call setline(1, ['a', 'b']) + new + wincmd p + call feedkeys("G\<C-V>", 'txn') + autocmd User Explode ++once redraw + doautoall User Explode + %bwipe! +endfunc + func Test_autocmd_closes_window() au BufNew,BufWinLeave * e %e file yyy |