ruby-changes:67388
From: aycabta <ko1@a...>
Date: Tue, 31 Aug 2021 15:20:47 +0900 (JST)
Subject: [ruby-changes:67388] 817694481c (master): [ruby/irb] Set the dialog width to render with a fixed width
https://git.ruby-lang.org/ruby.git/commit/?id=817694481c From 817694481c7ea3436b71809305e9b5ecafdf6eb5 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Tue, 31 Aug 2021 15:15:29 +0900 Subject: [ruby/irb] Set the dialog width to render with a fixed width https://github.com/ruby/irb/commit/80c4329643 --- lib/irb/input-method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 865aad5..9539163 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -363,7 +363,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/input-method.rb#L363 x = cursor_pos_to_render.x + autocomplete_dialog.width x = cursor_pos_to_render.x - width if x + width >= screen_width y = cursor_pos_to_render.y + pointer - autocomplete_dialog.scroll_top - DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: contents, bg_color: '49') + DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: contents, width: width, bg_color: '49') } # Reads the next line from this input method. -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/