Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fixed issue where the NextScreen action would never have an effect
Mikayla Makicd2d593a6c6a
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex ad21622fd9e..ab2bdf1889a 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -184,7 +184,6 @@ actions!(Paste,Undo,Redo,- NextScreen,MoveUp,PageUp,MoveDown,diff --git a/crates/editor/src/scroll/actions.rs b/crates/editor/src/scroll/actions.rsindex 8e574025326..fb3dec01291 100644--- a/crates/editor/src/scroll/actions.rs+++ b/crates/editor/src/scroll/actions.rs@@ -64,15 +64,15 @@ impl Editor {return None;}- self.context_menu.as_mut()?;+ if self.mouse_context_menu.read(cx).visible() {+ return None;+ }if matches!(self.mode, EditorMode::SingleLine) {cx.propagate_action();return None;}-self.request_autoscroll(Autoscroll::Next, cx);-Some(())}