| 3666 | } |
| 3667 | |
| 3668 | void UICodeEditor::selectToNextLine() { |
| 3669 | for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) { |
| 3670 | TextPosition position = mDoc->getSelectionIndex( i ).start(); |
| 3671 | if ( position.line() == (Int64)mDocView.getVisibleLinesCount() - 1 ) { |
| 3672 | mDoc->selectTo( i, mDoc->endOfDoc() ); |
| 3673 | } else { |
| 3674 | mDoc->selectTo( i, moveToLineOffset( position, 1 ) ); |
| 3675 | } |
| 3676 | } |
| 3677 | mDoc->mergeSelection(); |
| 3678 | } |
| 3679 | |
| 3680 | void UICodeEditor::moveScrollUp() { |
| 3681 | setScrollY( mScroll.y - getLineHeight() ); |
no test coverage detected