mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Set the dialog width to render with a fixed width
https://github.com/ruby/irb/commit/80c4329643
This commit is contained in:
parent
077bc98ce4
commit
817694481c
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue