undo/redo

This commit is contained in:
alice pellerin
2026-03-18 16:28:15 -05:00
parent 725e6784ab
commit 7695d23984
5 changed files with 108 additions and 7 deletions
+3 -1
View File
@@ -23,7 +23,8 @@ pub struct App {
pub partial_replace: Option<u8>,
pub edit_history: Vec<EditAction>,
// some index to keep track of where we are? edit_prophecy?
// the index *after* the latest edit action
pub time_traveling: Option<usize>,
pub logs: Vec<String>,
}
@@ -102,6 +103,7 @@ impl App {
partial_replace: None,
edit_history: Vec::new(),
time_traveling: None,
logs: Vec::new(),
}