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

Method undo

test/MockEditorInterface.cpp:608–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606}
607
608void MockEditorInterface::undo() {
609 auto doc = active_document();
610 if (!doc)
611 return;
612 // For now redo is not supported
613 if (!doc->past.empty()) {
614 doc->cur = doc->past.back();
615 doc->past.pop_back();
616 }
617}
618
619bool MockEditorInterface::is_line_visible(TextPosition /*line*/) const {
620 return true;

Callers 1

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected