Skip to content

Commit

Permalink
Scroll properly to create margin
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Aug 23, 2021
1 parent f1efa2b commit 064d54f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,8 @@ def dialog_proc=(p)
@dialog_vertical_offset = -(DIALOG_HEIGHT + 1)
else
if (lower_space + @rest_height) < DIALOG_HEIGHT
down = DIALOG_HEIGHT - (lower_space + @rest_height)
scroll_down(down)
move_cursor_up(DIALOG_HEIGHT - 1)
scroll_down(DIALOG_HEIGHT)
move_cursor_up(DIALOG_HEIGHT)
end
@dialog_updown = :down
@dialog_vertical_offset = 1
Expand Down

0 comments on commit 064d54f

Please sign in to comment.