Start restructuring WrapMap with simpler concurrency
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
80f13dd737
commit
5d22c6c4bd
+2
-2
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user