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

Method selectToNextLine

src/eepp/ui/uicodeeditor.cpp:3668–3678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3666}
3667
3668void UICodeEditor::selectToNextLine() {
3669 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {
3670 TextPosition position = mDoc->getSelectionIndex( i ).start();
3671 if ( position.line() == (Int64)mDocView.getVisibleLinesCount() - 1 ) {
3672 mDoc->selectTo( i, mDoc->endOfDoc() );
3673 } else {
3674 mDoc->selectTo( i, moveToLineOffset( position, 1 ) );
3675 }
3676 }
3677 mDoc->mergeSelection();
3678}
3679
3680void UICodeEditor::moveScrollUp() {
3681 setScrollY( mScroll.y - getLineHeight() );

Callers 1

registerCommandsMethod · 0.45

Calls 7

getSelectionIndexMethod · 0.80
selectToMethod · 0.80
endOfDocMethod · 0.80
mergeSelectionMethod · 0.80
sizeMethod · 0.45
startMethod · 0.45
getVisibleLinesCountMethod · 0.45

Tested by

no test coverage detected