diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-05-25 13:34:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-05-25 13:34:04 +0200 |
commit | 334adf0ae530a70454d9c01b8aeb717f324d7c97 (patch) | |
tree | 2c5d7bcb14c4b0cdaf25c30fd80fc15801f14386 /src/testdir/test3.in | |
parent | a660dc8f303548488f6138a04cb7a33a396d1b08 (diff) | |
download | vim-git-334adf0ae530a70454d9c01b8aeb717f324d7c97.tar.gz |
updated for version 7.3.201v7.3.201
Problem: "} else" still causes following lines to be indented too much.
Solution: Better detection for the "else" block. (Lech Lorens)
Diffstat (limited to 'src/testdir/test3.in')
-rw-r--r-- | src/testdir/test3.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/test3.in b/src/testdir/test3.in index 05efa9848..0d3720530 100644 --- a/src/testdir/test3.in +++ b/src/testdir/test3.in @@ -1413,6 +1413,21 @@ void func(void) } STARTTEST +:set cino& +2kdd=][ +ENDTEST + +void func(void) +{ + for (int i = 0; i < 10; ++i) + if (i & 1) { + foo(1); + } else + foo(0); +baz(); +} + +STARTTEST :g/^STARTTEST/.,/^ENDTEST/d :1;/start of AUTO/,$wq! test.out ENDTEST |