Lech Lorens wrote:
> Currently Vim fails to indent correctly code where "else", "{" and an
> expression occur on a single line. E.g. this fragment of code:
>
> #v+
> void func(void)
> {
> if(x==y)
> if(y==z)
> foo=1;
> else { bar=1;
> baz = 2;
> }
> printf("Foo!\n");
> }
> #v-
>
> will have printf() indented too much.
>
> The attached patch fixes the issue.
Thanks, also for writing a test for this. I'll include it.
--
hundred-and-one symptoms of being an internet addict:
68. Your cat always puts viruses on your dogs homepage
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php