Update tab's modified icon via a saved event emitted from buffer

This commit is contained in:
Max Brunsfeld
2021-04-06 15:47:05 -07:00
parent dabd6abe37
commit bd37b11306
5 changed files with 37 additions and 15 deletions
+1
View File
@@ -126,6 +126,7 @@ impl DisplayMap {
fn handle_buffer_event(&mut self, event: &buffer::Event, ctx: &mut ModelContext<Self>) {
match event {
buffer::Event::Edited(edits) => self.fold_map.apply_edits(edits, ctx.app()).unwrap(),
_ => {}
}
}
}