mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Scroll properly to create margin
https://github.com/ruby/reline/commit/064d54f8f1
This commit is contained in:
parent
85dd0ad5e0
commit
9b2afb2eed
1 changed files with 2 additions and 3 deletions
|
@ -559,9 +559,8 @@ class Reline::LineEditor
|
|||
@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
|
||||
|
|
Loading…
Reference in a new issue