Undo/redo support in ViEditor
This commit is contained in:
parent
7830f4107c
commit
5352fdee94
5 changed files with 198 additions and 68 deletions
|
|
@ -304,6 +304,10 @@ impl<'a> Edit for SyntaxEditor<'a> {
|
|||
self.editor.insert_string(data, attrs_list);
|
||||
}
|
||||
|
||||
fn apply_change(&mut self, change: &Change) -> bool {
|
||||
self.editor.apply_change(change)
|
||||
}
|
||||
|
||||
fn start_change(&mut self) {
|
||||
self.editor.start_change();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue