Start restructuring WrapMap with simpler concurrency

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-07-22 16:21:42 -07:00
co-authored by Nathan Sobo
parent 80f13dd737
commit 5d22c6c4bd
6 changed files with 530 additions and 581 deletions
+2 -2
View File
@@ -2198,8 +2198,8 @@ impl Editor {
font_cache.em_width(font_id, settings.buffer_font_size)
}
pub fn set_wrap_width(&self, width: f32) {
self.display_map.set_wrap_width(Some(width));
pub fn set_wrap_width(&self, width: f32, cx: &AppContext) {
self.display_map.set_wrap_width(Some(width), cx);
}
// TODO: Can we make this not return a result?