diff options
author | aycabta <aycabta@gmail.com> | 2021-08-31 15:15:29 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-08-31 15:20:34 +0900 |
commit | 817694481c7ea3436b71809305e9b5ecafdf6eb5 (patch) | |
tree | cf76b5dd954a87075b078a45ca73ed85e7d1b7a8 /lib/irb | |
parent | 077bc98ce42be3c22da1087ef9774065277612f9 (diff) |
[ruby/irb] Set the dialog width to render with a fixed width
https://github.com/ruby/irb/commit/80c4329643
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/input-method.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 865aad59fe..953916308e 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -363,7 +363,7 @@ module IRB 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. |