| 3587 | } |
| 3588 | |
| 3589 | void UICodeEditor::selectToStartOfLine() { |
| 3590 | for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) { |
| 3591 | auto selection = mDoc->getSelectionIndex( i ); |
| 3592 | auto info = mDocView.getVisibleLineRange( mDoc->getSelectionIndex( i ).start() ); |
| 3593 | mDoc->selectTo( i, info.range.start() != selection.start() |
| 3594 | ? info.range.start() |
| 3595 | : mDoc->startOfLine( selection.start() ) ); |
| 3596 | } |
| 3597 | mDoc->mergeSelection(); |
| 3598 | } |
| 3599 | |
| 3600 | void UICodeEditor::selectToEndOfLine() { |
| 3601 | for ( size_t i = 0; i < mDoc->getSelections().size(); ++i ) { |
no test coverage detected