forked from qt-creator/qt-creator
Code folding fix
Remove harmful over optimization (made it impossible to restore nested folding states)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user