diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-02 03:04:09 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2018-02-11 15:27:57 +0100 |
| commit | 6116af02efaaa67bdfe8bcabb5c46cf8e3293686 (patch) | |
| tree | 92baef650adebb628bdfd160dd35e1186f8e272b /src/nvim/testdir | |
| parent | 5ae90c84eadb4ebc910824627fb91d386cf2bd48 (diff) | |
| download | rneovim-6116af02efaaa67bdfe8bcabb5c46cf8e3293686.tar.gz rneovim-6116af02efaaa67bdfe8bcabb5c46cf8e3293686.tar.bz2 rneovim-6116af02efaaa67bdfe8bcabb5c46cf8e3293686.zip | |
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
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 14 |
1 files changed, 1 insertions, 13 deletions
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'\<CR>", 'xt') - call assert_equal("echom 'hello'", g:text) - au! CmdlineChanged - - au! CmdlineChanged : let g:entered = expand('<afile>') - let g:entered = 0 - call feedkeys(":echom 'hello'\<CR>", 'xt') - call assert_equal(':', g:entered) - au! CmdlineChanged - au! CmdlineEnter : let g:entered = expand('<afile>') au! CmdlineLeave : let g:left = expand('<afile>') 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 |