Skip to content

Commit

Permalink
Shrink the dialog height when contents is shorter than it
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 2, 2021
1 parent 0527b1a commit a188176
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ def add_dialog_proc(name, p, context = nil)
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
Expand Down

0 comments on commit a188176

Please sign in to comment.