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

Method findLongestLine

src/eepp/ui/uicodeeditor.cpp:2077–2083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2075}
2076
2077void UICodeEditor::findLongestLine() {
2078 if ( needsHorizontalLength() ) {
2079 auto range = findLongestLineInRange( mDoc->getDocRange() );
2080 mLongestLineIndex = range.first;
2081 mLongestLineWidth = range.second;
2082 }
2083}
2084
2085Float UICodeEditor::getLineWidth( const Int64& docLine ) {
2086 if ( docLine >= (Int64)mDoc->linesCount() || !mDocView.isLineVisible( docLine ) )

Callers

nothing calls this directly

Calls 1

getDocRangeMethod · 0.80

Tested by

no test coverage detected