This commit is contained in:
Nathan Sobo
2021-07-24 08:09:04 -06:00
parent f81f043058
commit 3bf47be51e
4 changed files with 76 additions and 61 deletions
+4 -2
View File
@@ -123,10 +123,10 @@ impl WrapMap {
self.0.lock().snapshot.clone()
}
pub fn set_wrap_width(&self, wrap_width: Option<f32>, cx: &mut MutableAppContext) {
pub fn set_wrap_width(&self, wrap_width: Option<f32>, cx: &mut MutableAppContext) -> bool {
let mut state = self.0.lock();
if wrap_width == state.wrap_width {
return;
return false;
}
state.wrap_width = wrap_width;
@@ -173,6 +173,8 @@ impl WrapMap {
}
}
}
true
}
fn flush_edits(&self, executor: &Arc<Background>) {