Skip to content

Commit 49a73d9

Browse files
committed
Follow that Dialog#contents_width has been renamed to #width
1 parent 6480edd commit 49a73d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/irb/input-method.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def auto_indent(&block)
360360
formatter.width = width
361361
contents = doc.accept(formatter).split("\n")
362362

363-
x = cursor_pos_to_render.x + autocomplete_dialog.contents_width
363+
x = cursor_pos_to_render.x + autocomplete_dialog.width
364364
x = cursor_pos_to_render.x - width if x + width >= screen_width
365365
y = cursor_pos_to_render.y + pointer - autocomplete_dialog.scroll_top
366366
DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: contents, bg_color: '49')

0 commit comments

Comments
 (0)