Commit: patch 9.2.0717: tests: strange indent in Test_autocmd_dup_arg()

0 views
Skip to first unread message

Christian Brabandt

unread,
2:00 PM (10 hours ago) 2:00 PM
to vim...@googlegroups.com
patch 9.2.0717: tests: strange indent in Test_autocmd_dup_arg()

Commit: https://github.com/vim/vim/commit/05df981c35e066dd45ebe12af26fb4e662a932ef
Author: zeertzjq <zeer...@outlook.com>
Date: Wed Jun 24 17:45:48 2026 +0000

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 <zeer...@outlook.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index 4828b3ea9..b2a3dea14 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 aebc46107..72f154f3e 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,
/**/
Reply all
Reply to author
Forward
0 new messages