mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
updated for version 7.3.178
Problem: C-indent doesn't handle code right after { correctly.
Solution: Fix detecting unterminated line. (Lech Lorens)
This commit is contained in:
@@ -1343,6 +1343,22 @@ func(int a
|
||||
#if defined(FOO)
|
||||
, int b
|
||||
, int c
|
||||
#endif
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
STARTTEST
|
||||
:set cino&
|
||||
2kdd=][
|
||||
ENDTEST
|
||||
|
||||
void func(void)
|
||||
{
|
||||
if(x==y)
|
||||
if(y==z)
|
||||
foo=1;
|
||||
else { bar=1;
|
||||
baz=2;
|
||||
}
|
||||
printf("Foo!\n");
|
||||
|
||||
@@ -1204,3 +1204,15 @@ func(int a
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void func(void)
|
||||
{
|
||||
if(x==y)
|
||||
if(y==z)
|
||||
foo=1;
|
||||
else { bar=1;
|
||||
baz=2;
|
||||
}
|
||||
printf("Foo!\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user