ruby-changes:67552
From: aycabta <ko1@a...>
Date: Thu, 2 Sep 2021 17:11:24 +0900 (JST)
Subject: [ruby-changes:67552] 4208cd0301 (master): [ruby/reline] Shrink the dialog height when contents is shorter than it
https://git.ruby-lang.org/ruby.git/commit/?id=4208cd0301 From 4208cd030101c9c174af99e4ef574bbb86b325f1 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Thu, 2 Sep 2021 16:27:00 +0900 Subject: [ruby/reline] Shrink the dialog height when contents is shorter than it https://github.com/ruby/reline/commit/a18817635f --- lib/reline/line_editor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 4f89e37..27e96ed 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -609,6 +609,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L609 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/