summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-08-31 15:14:16 +0900
committergit <svn-admin@ruby-lang.org>2021-08-31 15:20:27 +0900
commit077bc98ce42be3c22da1087ef9774065277612f9 (patch)
treed81ac2624f477685d138df2960acae50ee28ab05 /lib/irb
parenta8e6a850d571ea798ea52753f6b3252c33dd1270 (diff)
[ruby/irb] Follow that Dialog#contents_width has been renamed to #width
https://github.com/ruby/irb/commit/49a73d929e
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/input-method.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index fb7e1d67cb..865aad59fe 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -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')