diff options
| author | Matthieu Coudron <mattator@gmail.com> | 2020-06-06 02:05:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-06 02:05:49 +0200 |
| commit | 33dafc4f0f21f763dac8f6bdbd27117666f908c5 (patch) | |
| tree | 179301040b52babddbe60001bc5c9b467edc310a /src/nvim/testdir/test_cmdline.vim | |
| parent | fca471d8e2573c2351151051a2d2c6eee0b2243b (diff) | |
| parent | 9538a7895cb6af2312a39c4c0710ace638309914 (diff) | |
| download | rneovim-33dafc4f0f21f763dac8f6bdbd27117666f908c5.tar.gz rneovim-33dafc4f0f21f763dac8f6bdbd27117666f908c5.tar.bz2 rneovim-33dafc4f0f21f763dac8f6bdbd27117666f908c5.zip | |
Merge pull request #12413 from janlazo/vim-8.2.0089
[RDY]vim-patch:8.0.1564,8.1.{917,1895,2018,2335},8.2.{89,491,873,892,905}
Diffstat (limited to 'src/nvim/testdir/test_cmdline.vim')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 2c7d64f078..f8d84f1a49 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -692,6 +692,22 @@ func Test_getcmdwin_autocmd() augroup END endfunc +" Test error: "E135: *Filter* Autocommands must not change current buffer" +func Test_cmd_bang_E135() + new + call setline(1, ['a', 'b', 'c', 'd']) + augroup test_cmd_filter_E135 + au! + autocmd FilterReadPost * help + augroup END + call assert_fails('2,3!echo "x"', 'E135:') + + augroup test_cmd_filter_E135 + au! + augroup END + %bwipe! +endfunc + func Test_verbosefile() set verbosefile=Xlog echomsg 'foo' |