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

Method moveToEndOfLine

src/eepp/ui/uicodeeditor.cpp:3561–3570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3559}
3560
3561void UICodeEditor::moveToEndOfLine() {
3562 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {
3563 auto selection = mDoc->getSelectionIndex( i );
3564 auto info = mDocView.getVisibleLineRange( selection.start() );
3565 mDoc->setSelection( i, info.range.end() != selection.end()
3566 ? info.range.end()
3567 : mDoc->endOfLine( selection.end() ) );
3568 }
3569 mDoc->mergeSelection();
3570}
3571
3572void UICodeEditor::moveToStartOfContent() {
3573 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {

Callers 6

insertFileToDocumentMethod · 0.45
initAttachFileMethod · 0.45
registerCommandsMethod · 0.45
onKeyDownMethod · 0.45
getFilesFromMethod · 0.45

Calls 8

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

Tested by

no test coverage detected