diff options
| author | Bram Moolenaar <Bram@vim.org> | 2022-03-04 20:10:38 +0000 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2022-03-04 20:10:38 +0000 |
| commit | f07751457c39a645009c17cd837131f6bcdd7d55 (patch) | |
| tree | 119f5f4f97b44fa75496ec1d690c855bc16af8c3 /src/testdir | |
| parent | 196c3850dbe95247f7aa1b0000a5cae625a99ef2 (diff) | |
| download | vim-git-8.2.4505.tar.gz | |
patch 8.2.4505: Vim9: outdated "autocmd nested" still worksv8.2.4505
Problem: Vim9: outdated "autocmd nested" still works.
Solution: Do not accept the :autocmd argument "nested" without "++" in Vim9
script.
Diffstat (limited to 'src/testdir')
| -rw-r--r-- | src/testdir/test_autocmd.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index d3c9b8902..7be0c1815 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -2116,6 +2116,9 @@ func Test_autocmd_nested() close bwipe! somefile + " nested without ++ does not work in Vim9 script + call assert_fails('vim9cmd au WinNew * nested echo fails', 'E1078:') + augroup Testing au! augroup END |
