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))
QTextBlock b =;
if (b.isVisible() == unfold)
int indent = foldingIndent(block);
while (b.isValid() && foldingIndent(b) > indent && {
Supports Markdown
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