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

Method selectToStartOfLine

src/eepp/ui/uicodeeditor.cpp:3589–3598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3587}
3588
3589void UICodeEditor::selectToStartOfLine() {
3590 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {
3591 auto selection = mDoc->getSelectionIndex( i );
3592 auto info = mDocView.getVisibleLineRange( mDoc->getSelectionIndex( i ).start() );
3593 mDoc->selectTo( i, info.range.start() != selection.start()
3594 ? info.range.start()
3595 : mDoc->startOfLine( selection.start() ) );
3596 }
3597 mDoc->mergeSelection();
3598}
3599
3600void UICodeEditor::selectToEndOfLine() {
3601 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {

Callers 1

registerCommandsMethod · 0.45

Calls 7

getSelectionIndexMethod · 0.80
selectToMethod · 0.80
startOfLineMethod · 0.80
mergeSelectionMethod · 0.80
sizeMethod · 0.45
getVisibleLineRangeMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected