My favorites | Sign in
Project Home Downloads Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 476: Code folding '+' is on wrong line when using split-line {}-block coding style
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by nsetbtg...@mailinator.com, May 16, 2009
What steps will reproduce the problem?
1. Open a file from a {}-block language (such as C)

2. Go to (or type in) a function definition, conditional or loop of the
following form:

if(blah)
{

}

3. Look at the "code folding" column on the left.

What is the expected output?
The '+' expander should be on the line "if(blah)".

What do you see instead?
The '+' expander is on the line "{".

What version of the product are you using? On what operating system?
2.0.9.970-devel, WinXP Pro SP2

May 16, 2009
#1 jamesfa...@gmail.com
I think it's not a problem.
The left brace is right beginning of a block.
May 18, 2009
#2 nsetbtg...@mailinator.com
Considering the left brace to be the beginning of a block (instead of the beginning
of the statement that the block is "attached" to) leads to very ugly code folding for
anyone who uses that style of formatting, and serves absolutely no useful purpose for
anyone. Therefore, it is the wrong choice.
Sign in to add a comment

Powered by Google Project Hosting