Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Rename draw2 -> draw_and_update_state

Nathan Soboad8165ae797d
diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rs
index 831b6cd35ae..0f1b565b9d8 100644
--- a/crates/editor2/src/element.rs
+++ b/crates/editor2/src/element.rs
@@ -933,7 +933,7 @@ impl EditorElement {
cx.stop_propagation();
},
))
- .draw2(
+ .draw_and_update_state(
fold_bounds.origin,
fold_bounds.size,
cx,
diff --git a/crates/gpui2/src/element.rs b/crates/gpui2/src/element.rs
index f4bcb17f3c8..b446c2fe86e 100644
--- a/crates/gpui2/src/element.rs
+++ b/crates/gpui2/src/element.rs
@@ -23,7 +23,7 @@ pub trait IntoElement: Sized {
self.into_element().into_any()
}
- fn draw2<T, R>(
+ fn draw_and_update_state<T, R>(
self,
origin: Point<Pixels>,
available_space: Size<T>,