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

Method selectToPreviousLine

src/eepp/ui/uicodeeditor.cpp:3660–3666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3658}
3659
3660void UICodeEditor::selectToPreviousLine() {
3661 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {
3662 TextPosition position = mDoc->getSelectionIndex( i ).start();
3663 mDoc->selectTo( i, moveToLineOffset( position, -1 ) );
3664 }
3665 mDoc->mergeSelection();
3666}
3667
3668void UICodeEditor::selectToNextLine() {
3669 for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) {

Callers 1

registerCommandsMethod · 0.45

Calls 5

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

Tested by

no test coverage detected