| 459 | } |
| 460 | |
| 461 | void TextDocument::setCursorPosition(const KTextEditor::Cursor &cursor) |
| 462 | { |
| 463 | Q_D(TextDocument); |
| 464 | |
| 465 | if (!cursor.isValid() || !d->document) |
| 466 | return; |
| 467 | |
| 468 | KTextEditor::View *view = activeTextView(); |
| 469 | |
| 470 | // Rodda: Cursor must be accurate here, to the definition of accurate for KTextEditor::Cursor. |
| 471 | // ie, starting from 0,0 |
| 472 | |
| 473 | if (view) |
| 474 | selectAndReveal(view, {cursor, cursor}); |
| 475 | } |
| 476 | |
| 477 | KTextEditor::Range TextDocument::textSelection() const |
| 478 | { |
no test coverage detected