зеркало из https://github.com/github/ruby.git
[ruby/reline] Fix a misalignment when dialog is shown on top
https://github.com/ruby/reline/commit/0527b1a492
This commit is contained in:
Родитель
123fcc8c92
Коммит
a44d28db9f
|
@ -632,7 +632,7 @@ class Reline::LineEditor
|
|||
if (lower_space + @rest_height - dialog_render_info.pos.y) >= height
|
||||
dialog.vertical_offset = dialog_render_info.pos.y + 1
|
||||
elsif upper_space >= height
|
||||
dialog.vertical_offset = dialog_render_info.pos.y + -(height + 1)
|
||||
dialog.vertical_offset = dialog_render_info.pos.y - height
|
||||
else
|
||||
if (lower_space + @rest_height - dialog_render_info.pos.y) < height
|
||||
scroll_down(height + dialog_render_info.pos.y)
|
||||
|
|
Загрузка…
Ссылка в новой задаче