This commit is contained in:
Antonio Scandurra
2023-11-06 18:59:46 +01:00
parent 769526a76a
commit e460f6a27c
3 changed files with 580 additions and 555 deletions
+3 -3
View File
@@ -8693,9 +8693,9 @@ impl Editor {
}
}
// pub fn show_local_cursors(&self, cx: &AppContext) -> bool {
// self.blink_manager.read(cx).visible() && self.focused
// }
pub fn show_local_cursors(&self, cx: &AppContext) -> bool {
self.blink_manager.read(cx).visible() && self.focused
}
fn on_buffer_changed(&mut self, _: Model<MultiBuffer>, cx: &mut ViewContext<Self>) {
cx.notify();
File diff suppressed because it is too large Load Diff
-4
View File
@@ -29,10 +29,6 @@ impl Line {
)
}
pub fn width(&self) -> Pixels {
self.layout.width
}
pub fn wrap_count(&self) -> usize {
self.layout.wrap_boundaries.len()
}