]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0717: tests: strange indent in Test_autocmd_dup_arg() v9.2.0717
authorzeertzjq <zeertzjq@outlook.com>
Wed, 24 Jun 2026 17:45:48 +0000 (17:45 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 24 Jun 2026 17:45:48 +0000 (17:45 +0000)
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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_autocmd.vim
src/version.c

index 4828b3ea9e1950bd037b19a2aaf88fa6d3dd8366..b2a3dea149d0102aae76e387b290e68dfbef1d25 100644 (file)
@@ -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
 
 
index aebc46107757732d297ad902a19289b5917af9dd..72f154f3e6fafd268db3cf8d32cd798004778879 100644 (file)
@@ -759,6 +759,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    717,
 /**/
     716,
 /**/