mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Follow that Dialog#contents_width has been renamed to #width
https://github.com/ruby/irb/commit/49a73d929e
This commit is contained in:
parent
a8e6a850d5
commit
077bc98ce4
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ module IRB
|
|||
formatter.width = width
|
||||
contents = doc.accept(formatter).split("\n")
|
||||
|
||||
x = cursor_pos_to_render.x + autocomplete_dialog.contents_width
|
||||
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')
|
||||
|
|
Loading…
Add table
Reference in a new issue