MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / ContractedFoldNext

Method ContractedFoldNext

scintilla/src/Editor.cxx:7186–7198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7184}
7185
7186int Editor::ContractedFoldNext ( int lineStart )
7187{
7188 for ( int line = lineStart; line < pdoc->LinesTotal(); ) {
7189 if ( !cs.GetExpanded ( line ) && ( pdoc->GetLevel ( line ) & SC_FOLDLEVELHEADERFLAG ) ) {
7190 return line;
7191 }
7192 line = cs.ContractedNext ( line + 1 );
7193 if ( line < 0 ) {
7194 return -1;
7195 }
7196 }
7197 return -1;
7198}
7199
7200/**
7201 * Recurse up from this line to find any folds that prevent this line from being visible

Callers

nothing calls this directly

Calls 4

LinesTotalMethod · 0.80
ContractedNextMethod · 0.80
GetExpandedMethod · 0.45
GetLevelMethod · 0.45

Tested by

no test coverage detected