diff options
| author | lonerover <pathfinder1644@yahoo.com> | 2017-01-09 12:01:50 +0800 |
|---|---|---|
| committer | lonerover <pathfinder1644@yahoo.com> | 2017-01-09 12:12:42 +0800 |
| commit | f8f04350bd07bc0f3e6f618bc6c8ff4d7ce3d5ac (patch) | |
| tree | b6cafef999680aa45d8ce5ee71223724e0ff4b45 /src/nvim/testdir | |
| parent | 6f285226a9cc0e24bcb77a3213035cd26170ddb4 (diff) | |
| download | rneovim-f8f04350bd07bc0f3e6f618bc6c8ff4d7ce3d5ac.tar.gz rneovim-f8f04350bd07bc0f3e6f618bc6c8ff4d7ce3d5ac.tar.bz2 rneovim-f8f04350bd07bc0f3e6f618bc6c8ff4d7ce3d5ac.zip | |
vim-patch:7.4.2313
Problem: Crash when deleting an augroup and listing an autocommand.
(Dominique Pelle)
Solution: Make sure deleted_augroup is valid.
https://github.com/vim/vim/commit/b62cc36a600e2e1e5a1d1d484fef89898c847c4c
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 6db3bf76d3..7d786c88cf 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -183,3 +183,12 @@ func Test_augroup_warning() redir END call assert_true(match(res, "W19:") < 0) endfunc + +func Test_augroup_deleted() + " This caused a crash + augroup x + augroup! x + au VimEnter * echo + au VimEnter +endfunc + |