Skip to content

Commit 064d54f

Browse files
committed
Scroll properly to create margin
1 parent f1efa2b commit 064d54f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/reline/line_editor.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,8 @@ def dialog_proc=(p)
559559
@dialog_vertical_offset = -(DIALOG_HEIGHT + 1)
560560
else
561561
if (lower_space + @rest_height) < DIALOG_HEIGHT
562-
down = DIALOG_HEIGHT - (lower_space + @rest_height)
563-
scroll_down(down)
564-
move_cursor_up(DIALOG_HEIGHT - 1)
562+
scroll_down(DIALOG_HEIGHT)
563+
move_cursor_up(DIALOG_HEIGHT)
565564
end
566565
@dialog_updown = :down
567566
@dialog_vertical_offset = 1

0 commit comments

Comments
 (0)