MCPcopy Create free account
hub / github.com/SpartanJ/eepp / fold

Method fold

src/eepp/ui/uicodeeditor.cpp:1659–1668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1657}
1658
1659bool UICodeEditor::fold( Int64 docLineIdx ) {
1660 if ( mDoc->getFoldRangeService().isFoldingRegionInLine( docLineIdx ) ) {
1661 /* if ( !mDocView.isFolded( docLineIdx ) ) */ {
1662 sendCommonEvent( Event::OnBeforeFoldUnfoldRange );
1663 mDocView.foldRegion( docLineIdx );
1664 return true;
1665 }
1666 }
1667 return false;
1668}
1669
1670bool UICodeEditor::unfold( Int64 docLineIdx ) {
1671 if ( mDoc->getFoldRangeService().isFoldingRegionInLine( docLineIdx ) ) {

Callers 2

registerCommandsMethod · 0.80
UTESTFunction · 0.80

Calls 3

isFoldingRegionInLineMethod · 0.80
foldRegionMethod · 0.80
startMethod · 0.45

Tested by 1

UTESTFunction · 0.64