You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey!
I have a problem with the feature You call middle folding point.
I use { } as folding separators and use fold by indent plugin to format the code.
However if two separators are on the same line,
due to the 'middle folding point' the code does not format properly.
(Because the folder is now ending one line higher).
Example output:
if{
smt0;
}
if{
smt1;
} else {
smt2;
}
Instead of:
if{
smt1;
} else {
smt2;
}
I have written to UDL about this and they responed:
Hi Matt,
this feature can be blocked only by commenting out part of source code, and then recompiling. But even that wouldn't help much, because code format-er needs to know about "middle" folding points (which represent end of old block and start of the new block in the same line)
I'd recommend to contact author of "Indent by fold" plugin, and ask him to extend his plugin to cover this case.
Folding points in Scintilla are 32-bit integers, and "middle" folding points represent two 16-bit numbers. If I had to guess, I'd say plugin is ignoring upper 16-bits of "middle" folding point.
Best regards,
Loreia
So, maybe it is a bug that is easily fixable ?
Cheers!
:)
The text was updated successfully, but these errors were encountered:
Hey!
I have a problem with the feature You call middle folding point.
I use { } as folding separators and use fold by indent plugin to format the code.
However if two separators are on the same line,
due to the 'middle folding point' the code does not format properly.
(Because the folder is now ending one line higher).
Example output:
Instead of:
I have written to UDL about this and they responed:
So, maybe it is a bug that is easily fixable ?
Cheers!
:)
The text was updated successfully, but these errors were encountered: