From: zeertzjq Date: Wed, 24 Jun 2026 17:45:48 +0000 (+0000) Subject: patch 9.2.0717: tests: strange indent in Test_autocmd_dup_arg() X-Git-Tag: v9.2.0717^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05df981c35e066dd45ebe12af26fb4e662a932ef;p=thirdparty%2Fvim.git patch 9.2.0717: tests: strange indent in Test_autocmd_dup_arg() Problem: tests: strange indent in Test_autocmd_dup_arg() (after v9.2.0708) Solution: Indent using the settings in the modeline. closes: #20619 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 4828b3ea9e..b2a3dea149 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -3212,34 +3212,34 @@ func Test_autocmd_once() endfunc func Test_autocmd_dup_arg() - " Duplicate ++once / ++nested, or the legacy "nested" used twice, must - " error out *and* not create the autocommand. Using an environment - " variable in the pattern also exercises the error-exit path that frees - " the expanded pattern (checked by the address/leak sanitizers). - augroup XdupTest - au! - augroup END - let $XAUTODIR = 'Xfoo' - - " New behavior: duplicate ++once now aborts, the autocmd is not added - call assert_fails('au XdupTest WinNew $XAUTODIR/* ++once ++once echo bad', 'E983:') - call assert_false(exists('#XdupTest#WinNew')) - - call assert_fails('au XdupTest WinNew $XAUTODIR/* ++nested ++nested echo bad', 'E983:') - call assert_false(exists('#XdupTest#WinNew')) - - call assert_fails('au XdupTest WinNew $XAUTODIR/* nested nested echo bad', 'E983:') - call assert_false(exists('#XdupTest#WinNew')) - - " "nested" without "++" is rejected in Vim9 script (also frees the pattern) - call assert_fails('vim9cmd au XdupTest WinNew $XAUTODIR/* nested echo bad', 'E1078:') - call assert_false(exists('#XdupTest#WinNew')) - - augroup XdupTest - au! - augroup END - augroup! XdupTest - let $XAUTODIR = '' + " Duplicate ++once / ++nested, or the legacy "nested" used twice, must + " error out *and* not create the autocommand. Using an environment + " variable in the pattern also exercises the error-exit path that frees + " the expanded pattern (checked by the address/leak sanitizers). + augroup XdupTest + au! + augroup END + let $XAUTODIR = 'Xfoo' + + " New behavior: duplicate ++once now aborts, the autocmd is not added + call assert_fails('au XdupTest WinNew $XAUTODIR/* ++once ++once echo bad', 'E983:') + call assert_false(exists('#XdupTest#WinNew')) + + call assert_fails('au XdupTest WinNew $XAUTODIR/* ++nested ++nested echo bad', 'E983:') + call assert_false(exists('#XdupTest#WinNew')) + + call assert_fails('au XdupTest WinNew $XAUTODIR/* nested nested echo bad', 'E983:') + call assert_false(exists('#XdupTest#WinNew')) + + " "nested" without "++" is rejected in Vim9 script (also frees the pattern) + call assert_fails('vim9cmd au XdupTest WinNew $XAUTODIR/* nested echo bad', 'E1078:') + call assert_false(exists('#XdupTest#WinNew')) + + augroup XdupTest + au! + augroup END + augroup! XdupTest + let $XAUTODIR = '' endfunc diff --git a/src/version.c b/src/version.c index aebc461077..72f154f3e6 100644 --- a/src/version.c +++ b/src/version.c @@ -759,6 +759,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 717, /**/ 716, /**/