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

Method selectToEndOfLine

src/eepp/ui/uicodeeditor.cpp:3600–3609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3598}
3599
3600void UICodeEditor::selectToEndOfLine() {
3601 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {
3602 auto selection = mDoc->getSelectionIndex( i );
3603 auto info = mDocView.getVisibleLineRange( selection.start() );
3604 mDoc->selectTo( i, info.range.end() != selection.start()
3605 ? info.range.end()
3606 : mDoc->endOfLine( selection.start() ) );
3607 }
3608 mDoc->mergeSelection();
3609}
3610
3611void UICodeEditor::selectToStartOfContent() {
3612 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {

Callers 1

registerCommandsMethod · 0.45

Calls 8

getSelectionIndexMethod · 0.80
selectToMethod · 0.80
endOfLineMethod · 0.80
mergeSelectionMethod · 0.80
sizeMethod · 0.45
getVisibleLineRangeMethod · 0.45
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected