Uncomment Editor::new
This commit is contained in:
+498
-500
File diff suppressed because it is too large
Load Diff
@@ -299,9 +299,9 @@ impl Editor {
|
||||
// cx.notify();
|
||||
// }
|
||||
|
||||
// pub fn visible_line_count(&self) -> Option<f32> {
|
||||
// self.scroll_manager.visible_line_count
|
||||
// }
|
||||
pub fn visible_line_count(&self) -> Option<f32> {
|
||||
self.scroll_manager.visible_line_count
|
||||
}
|
||||
|
||||
// pub(crate) fn set_visible_line_count(&mut self, lines: f32, cx: &mut ViewContext<Self>) {
|
||||
// let opened_first_time = self.scroll_manager.visible_line_count.is_none();
|
||||
|
||||
@@ -373,6 +373,10 @@ impl AppContext {
|
||||
self.platform.reveal_path(path)
|
||||
}
|
||||
|
||||
pub fn should_auto_hide_scrollbars(&self) -> bool {
|
||||
self.platform.should_auto_hide_scrollbars()
|
||||
}
|
||||
|
||||
pub(crate) fn push_effect(&mut self, effect: Effect) {
|
||||
match &effect {
|
||||
Effect::Notify { emitter } => {
|
||||
|
||||
Reference in New Issue
Block a user