MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / delete_range

Method delete_range

test/MockEditorInterface.cpp:588–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588void 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
598void MockEditorInterface::begin_undo_action() {
599 for (auto &doc : m_documents[m_target_view])

Callers

nothing calls this directly

Calls 2

save_stateMethod · 0.80
eraseMethod · 0.80

Tested by

no test coverage detected