Commit 697cb0da authored by mae's avatar mae
Browse files

Code folding fix

Remove harmful over optimization (made it impossible to restore
nested folding states)
parent 7003b82e
......@@ -493,8 +493,6 @@ void BaseTextDocumentLayout::doFoldOrUnfold(const QTextBlock& block, bool unfold
if (!canFold(block))
return;
QTextBlock b = block.next();
if (b.isVisible() == unfold)
return;
int indent = foldingIndent(block);
while (b.isValid() && foldingIndent(b) > indent && b.next().isValid()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment