| 3637 | } |
| 3638 | |
| 3639 | void UICodeEditor::jumpLinesDown( int offset ) { |
| 3640 | for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) { |
| 3641 | TextPosition position = mDoc->getSelections()[i].start(); |
| 3642 | Int64 visibleIndex = static_cast<Int64>( mDocView.getVisibleLineInfo( i ).visibleIndex ); |
| 3643 | if ( visibleIndex >= (Int64)mDocView.getVisibleLinesCount() - offset ) { |
| 3644 | mDoc->setSelection( i, mDoc->endOfDoc(), mDoc->endOfDoc() ); |
| 3645 | } else { |
| 3646 | mDoc->moveTo( i, moveToLineOffset( position, offset, i ) ); |
| 3647 | } |
| 3648 | } |
| 3649 | mDoc->mergeSelection(); |
| 3650 | } |
| 3651 | |
| 3652 | void UICodeEditor::jumpLinesUp() { |
| 3653 | jumpLinesDown( -mJumpLinesLength ); |
no test coverage detected