| 586 | } |
| 587 | |
| 588 | void MockEditorInterface::delete_range(TextPosition start, |
| 589 | TextPosition length) { |
| 590 | auto doc = active_document(); |
| 591 | if (!doc) |
| 592 | return; |
| 593 | if (m_save_undo[m_target_view]) |
| 594 | doc->save_state(); |
| 595 | doc->erase(start, length); |
| 596 | } |
| 597 | |
| 598 | void MockEditorInterface::begin_undo_action() { |
| 599 | for (auto &doc : m_documents[m_target_view]) |
nothing calls this directly
no test coverage detected