зеркало из https://github.com/github/ruby.git
[ruby/reline] Shrink the dialog height when contents is shorter than it
https://github.com/ruby/reline/commit/a18817635f
This commit is contained in:
Родитель
a44d28db9f
Коммит
4208cd0301
|
@ -609,6 +609,7 @@ class Reline::LineEditor
|
|||
height = dialog_render_info.height || DIALOG_HEIGHT
|
||||
pointer = dialog_render_info.pointer
|
||||
dialog.contents = dialog_render_info.contents
|
||||
height = dialog.contents.size if dialog.contents.size < height
|
||||
if dialog.contents.size > height
|
||||
if dialog_render_info.pointer
|
||||
if dialog_render_info.pointer < 0
|
||||
|
|
Загрузка…
Ссылка в новой задаче