fix update edit type
@@ -1208,6 +1208,10 @@ fn apply_edit(
self.notify_update();
}
+ pub fn update_edit_type(&mut self) {
+ self.last_edit_type = EditType::Other;
+ }
+
pub fn edit_multiple(
&mut self,
ctx: &mut EventCtx,
@@ -1431,11 +1435,6 @@ fn compute_undo(&self, groups: &BTreeSet<usize>) -> (Revision, Subset) {
deletes_from_union,
)
}
-
- pub fn update_edit_type(&mut self) {
- self.last_edit_type = self.this_edit_type;
- self.this_edit_type = EditType::Other
- }
}
fn shuffle_tombstones(
