forked from qt-creator/qt-creator
Fix code folding issue with empty nested blocks like in:
void main()
{
{
}
int i;
}
This commit is contained in:
@@ -2833,7 +2833,7 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e)
|
||||
document()->findBlockByNumber(d->m_highlightBlocksInfo.open.last()).position()
|
||||
);
|
||||
QTextBlock c = cursor.block();
|
||||
if (!TextBlockUserData::canCollapse(c))
|
||||
if (TextBlockUserData::hasCollapseAfter(c.previous()))
|
||||
c = c.previous();
|
||||
toggleBlockVisible(c);
|
||||
d->moveCursorVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user