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

Method moveToStartOfLine

src/eepp/ui/uicodeeditor.cpp:3550–3559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3548}
3549
3550void UICodeEditor::moveToStartOfLine() {
3551 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {
3552 auto selection = mDoc->getSelectionIndex( i );
3553 auto info = mDocView.getVisibleLineRange( mDoc->getSelectionIndex( i ).start() );
3554 mDoc->setSelection( i, info.range.start() != selection.start()
3555 ? info.range.start()
3556 : mDoc->startOfLine( selection.start() ) );
3557 }
3558 mDoc->mergeSelection();
3559}
3560
3561void UICodeEditor::moveToEndOfLine() {
3562 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {

Callers 1

registerCommandsMethod · 0.45

Calls 7

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

Tested by

no test coverage detected