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

Method onDocumentLineCountChange

src/eepp/ui/uicodeeditor.cpp:2304–2312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2302}
2303
2304void UICodeEditor::onDocumentLineCountChange( const size_t& lastCount, const size_t& newCount ) {
2305 updateScrollBar();
2306
2307 if ( Math::countDigits( (Int64)lastCount ) != Math::countDigits( (Int64)newCount ) )
2308 invalidateLineWrapMaxWidth( false );
2309
2310 if ( !mDocView.isWrapEnabled() )
2311 sendCommonEvent( Event::OnVisibleLinesCountChange );
2312}
2313
2314void UICodeEditor::onDocumentLineChanged( const Int64& lineNumber ) {
2315 mDoc->getHighlighter()->invalidate( lineNumber );

Callers

nothing calls this directly

Calls 2

countDigitsFunction · 0.85
isWrapEnabledMethod · 0.80

Tested by

no test coverage detected