Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Correctly swap position of context menu
Antonio Scandurra524f892fb0a6
diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rsindex 7f6135087a1..2cc6749e6be 100644--- a/crates/editor2/src/element.rs+++ b/crates/editor2/src/element.rs@@ -1051,7 +1051,7 @@ impl EditorElement {}if list_origin.y + list_height > text_bounds.lower_right().y {- list_origin.y -= layout.position_map.line_height - list_height;+ list_origin.y -= layout.position_map.line_height + list_height;}context_menu.draw(list_origin, available_space, cx);