mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[ruby/reline] Shrink the dialog height when contents is shorter than it
a18817635f
This commit is contained in:
parent
a44d28db9f
commit
4208cd0301
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue