Skip to content

Commit

Permalink
Follow that Dialog#contents_width has been renamed to #width
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Aug 31, 2021
1 parent 6480edd commit 49a73d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/input-method.rb
Expand Up @@ -360,7 +360,7 @@ def auto_indent(&block)
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')
Expand Down

0 comments on commit 49a73d9

Please sign in to comment.