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/test_autocmd.vim | |
parent | 196c3850dbe95247f7aa1b0000a5cae625a99ef2 (diff) |
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/test_autocmd.vim')
-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 d3c9b89024..7be0c1815a 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 |