Sublime Forum

Code folding wrong with indentation after last update

#1

I already wrote about the newly introduced issues with syntax based code folding.
In last update there is a fix but I’m still having issues with code folding.
This one makes code folding practically impossible:

Take this simple example (Tcl language):

if {$A} {
do1
} elseif {$B} {
do2
} elseif {$C} {
do3
}

I can fold the individual if else branches, no issues here.

Now we indent the code by one or more tabs:

if {$A} {
do1
} elseif {$B} {
do2
} elseif {$C} {
do3
}

In this case, the tab is two spaces wide.

Try to colaps the first “if”. The branch is collapsed, but also the next “elseif” ist appended to the first collapsed row! Now it’s impossible to collapse the second branch!

Please make this go away asap.
Many thanks!
Alexandru

0 Likes