MCPcopy Create free account
hub / github.com/fadeevab/design-patterns-rust / undo

Method undo

behavioral/command/command/paste.rs:23–26  ·  view source on GitHub ↗
(&mut self, app: &mut Cursive)

Source from the content-addressed store, hash-verified

21 }
22
23 fn undo(&mut self, app: &mut Cursive) {
24 let mut editor = app.find_name::<EditView>("Editor").unwrap();
25 editor.set_content(&self.backup);
26 }
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected