[ruby/reline] Shrink the dialog height when contents is shorter than it
https://github.com/ruby/reline/commit/a18817635f
This commit is contained in:
parent
a44d28db9f
commit
4208cd0301
@ -609,6 +609,7 @@ class Reline::LineEditor
|
|||||||
height = dialog_render_info.height || DIALOG_HEIGHT
|
height = dialog_render_info.height || DIALOG_HEIGHT
|
||||||
pointer = dialog_render_info.pointer
|
pointer = dialog_render_info.pointer
|
||||||
dialog.contents = dialog_render_info.contents
|
dialog.contents = dialog_render_info.contents
|
||||||
|
height = dialog.contents.size if dialog.contents.size < height
|
||||||
if dialog.contents.size > height
|
if dialog.contents.size > height
|
||||||
if dialog_render_info.pointer
|
if dialog_render_info.pointer
|
||||||
if dialog_render_info.pointer < 0
|
if dialog_render_info.pointer < 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user