mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
updated for version 7.3.201
Problem: "} else" still causes following lines to be indented too much. Solution: Better detection for the "else" block. (Lech Lorens)
This commit is contained in:
@@ -1412,6 +1412,21 @@ void func(void)
|
||||
|
||||
void func(void)
|
||||
{
|
||||
/*
|
||||
* This is a comment.
|
||||
*/
|
||||
}
|
||||
|
||||
STARTTEST
|
||||
:set cino&
|
||||
2kdd=][
|
||||
ENDTEST
|
||||
|
||||
void func(void)
|
||||
{
|
||||
for (int i = 0; i < 10; ++i)
|
||||
if (i & 1) {
|
||||
foo(1);
|
||||
} else
|
||||
foo(0);
|
||||
baz();
|
||||
|
||||
@@ -1262,3 +1262,14 @@ void func(void)
|
||||
foo();
|
||||
}
|
||||
|
||||
|
||||
void func(void)
|
||||
{
|
||||
for (int i = 0; i < 10; ++i)
|
||||
if (i & 1) {
|
||||
foo(1);
|
||||
} else
|
||||
foo(0);
|
||||
baz();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user