From 6116af02efaaa67bdfe8bcabb5c46cf8e3293686 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 2 Feb 2018 03:04:09 +0100 Subject: vim-patch:8.0.1403: using freed buffer in grep command Problem: Using freed buffer in grep command. (gy741, Dominique Pelle) Solution: Lock the dummy buffer to avoid autocommands wiping it out. https://github.com/vim/vim/commit/4fb921e388b9a042573ab06cce36e92874954197 --- src/nvim/testdir/test_autocmd.vim | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 16cf6965bd..d6ab4ff4e0 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -797,18 +797,6 @@ func Test_QuitPre() endfunc func Test_Cmdline() - au! CmdlineChanged : let g:text = getcmdline() - let g:text = 0 - call feedkeys(":echom 'hello'\", 'xt') - call assert_equal("echom 'hello'", g:text) - au! CmdlineChanged - - au! CmdlineChanged : let g:entered = expand('') - let g:entered = 0 - call feedkeys(":echom 'hello'\", 'xt') - call assert_equal(':', g:entered) - au! CmdlineChanged - au! CmdlineEnter : let g:entered = expand('') au! CmdlineLeave : let g:left = expand('') let g:entered = 0 @@ -983,7 +971,7 @@ func Test_Cmd_Autocmds() au BufWriteCmd XtestE call extend(g:lines, getline(0, '$')) wall " will write other window to 'lines' call assert_equal(4, len(g:lines), g:lines) - call assert_equal('asdf', g:lines[2]) + call assert_equal("\tasdf", g:lines[2]) au! BufReadCmd au! BufWriteCmd -- cgit