feat: configure half-page viewport scroll distance
This commit is contained in:
+13
@@ -12617,6 +12617,19 @@ end
|
||||
editor.handle(Input::Ctrl('u'));
|
||||
render(&mut terminal, &mut views, &mut editor);
|
||||
assert_eq!(offset(&views), initial);
|
||||
editor.set_scroll_half_page_lines(std::num::NonZeroUsize::new(3));
|
||||
editor.handle(Input::Char('2'));
|
||||
editor.handle(Input::Ctrl('d'));
|
||||
render(&mut terminal, &mut views, &mut editor);
|
||||
if !wrapped {
|
||||
assert_eq!(offset(&views), (initial.0 + 6, 0));
|
||||
}
|
||||
assert_eq!(editor.carets(), carets);
|
||||
assert_eq!(editor.selections(), selections);
|
||||
editor.handle(Input::Char('2'));
|
||||
editor.handle(Input::Ctrl('u'));
|
||||
render(&mut terminal, &mut views, &mut editor);
|
||||
assert_eq!(offset(&views), initial);
|
||||
if !visual {
|
||||
editor.handle(Input::Char('3'));
|
||||
editor.handle(Input::Alt('j'));
|
||||
|
||||
Reference in New Issue
Block a user