| 3598 | } |
| 3599 | |
| 3600 | void UICodeEditor::selectToEndOfLine() { |
| 3601 | for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) { |
| 3602 | auto selection = mDoc->getSelectionIndex( i ); |
| 3603 | auto info = mDocView.getVisibleLineRange( selection.start() ); |
| 3604 | mDoc->selectTo( i, info.range.end() != selection.start() |
| 3605 | ? info.range.end() |
| 3606 | : mDoc->endOfLine( selection.start() ) ); |
| 3607 | } |
| 3608 | mDoc->mergeSelection(); |
| 3609 | } |
| 3610 | |
| 3611 | void UICodeEditor::selectToStartOfContent() { |
| 3612 | for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) { |
no test coverage detected