From 49a73d929e6e04c0b05132a782e3a3fa1405d622 Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 31 Aug 2021 15:14:16 +0900 Subject: [PATCH] Follow that Dialog#contents_width has been renamed to #width --- lib/irb/input-method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index fb7e1d67c..865aad59f 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -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')