Skip to content

Commit

Permalink
ticket:4322 Unfold the block if line is commented out.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 17, 2017
1 parent a50285d commit d79a354
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions OMEdit/OMEditGUI/Editors/BaseEditor.cpp
Expand Up @@ -2002,6 +2002,15 @@ void BaseEditor::toggleCommentSelection()
}
mpPlainTextEdit->setTextCursor(cursor);
}
/* ticket:4322 Unfold the block if line is commented out.
* We only do this for single line comments because the multi line comments are done using selection.
*/
if (!doMultiLineStyleComment && !doMultiLineStyleUncomment && !doSingleLineStyleUncomment) {
endBlock = doc->findBlock(end);
if (BaseEditorDocumentLayout::canFold(endBlock)) {
BaseEditorDocumentLayout::foldOrUnfold(endBlock, true);
}
}
cursor.endEditBlock();
}

Expand Down

0 comments on commit d79a354

Please sign in to comment.