Fixed issue where the NextScreen action would never have an effect

This commit is contained in:
Mikayla Maki 2022-12-12 15:29:36 -08:00
parent 5a29a74956
commit cd2d593a6c
2 changed files with 3 additions and 4 deletions

View File

@ -184,7 +184,6 @@ actions!(
Paste,
Undo,
Redo,
NextScreen,
MoveUp,
PageUp,
MoveDown,

View File

@ -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(())
}