mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-10 05:37:29 +03:00
Fixed issue where the NextScreen action would never have an effect
This commit is contained in:
parent
5a29a74956
commit
cd2d593a6c
@ -184,7 +184,6 @@ actions!(
|
||||
Paste,
|
||||
Undo,
|
||||
Redo,
|
||||
NextScreen,
|
||||
MoveUp,
|
||||
PageUp,
|
||||
MoveDown,
|
||||
|
@ -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(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user