Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 247 by [email protected]: C Indenting after multi-line 'for'
loop clause
http://code.google.com/p/vim/issues/detail?id=247
What steps will reproduce the problem?
1. Be running vim 7.4 patch 355 or later.
2. Open the attached source file and use `gg=G` to have vim reindent the
code.
3. Note that vim chooses an incorrect indent level for the lines after the
final 'for' loop in the example source code.
What is the expected output? What do you see instead?
After a for loop with a multiple-line loop clause, and after the loop
block, vim wants to indent the subsequent code (outside of the loop body)
two levels too deep. (See the short sample file for a clear example of the
problem)
What version of the product are you using? On what operating system?
This occurs in vim 7.4 patch 355 through 389 on OSX -- I haven't tested
beyond 389 but this behaviour was definitely introduced in patch 355; it
doesn't happen at patch level 354.
Attachments:
indent_test.c 455 bytes
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.