mirror of
https://github.com/danbulant/nushell
synced 2026-05-27 22:12:35 +00:00
Add space for pagedown
This commit is contained in:
parent
20b909e316
commit
a6933ebe49
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ fn scroll_view_lines_if_needed(draw_commands: Vec<DrawCommand>, use_color_buffer
|
||||||
max_bottom_line =
|
max_bottom_line =
|
||||||
paint_textview(&draw_commands, starting_row, use_color_buffer);
|
paint_textview(&draw_commands, starting_row, use_color_buffer);
|
||||||
}
|
}
|
||||||
if rawkey.is_pressed(rawkey::KeyCode::PageDown) {
|
if rawkey.is_pressed(rawkey::KeyCode::PageDown) || rawkey.is_pressed(rawkey::KeyCode::Space) {
|
||||||
if starting_row < (max_bottom_line - height) {
|
if starting_row < (max_bottom_line - height) {
|
||||||
starting_row += height;
|
starting_row += height;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue