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.

ui: Remove early return after painting existing menu (#43631)

Xiaobo Liud97d4f3949be
diff --git a/crates/ui/src/components/right_click_menu.rs b/crates/ui/src/components/right_click_menu.rs
index 761189671b9..dff42307371 100644
--- a/crates/ui/src/components/right_click_menu.rs
+++ b/crates/ui/src/components/right_click_menu.rs
@@ -223,7 +223,6 @@ impl<M: ManagedView> Element for RightClickMenu<M> {
if let Some(mut menu) = request_layout.menu_element.take() {
menu.paint(window, cx);
- return;
}
let Some(builder) = this.menu_builder.take() else {