[前][次][番号順一覧][スレッド一覧]

ruby-changes:67387

From: aycabta <ko1@a...>
Date: Tue, 31 Aug 2021 15:20:37 +0900 (JST)
Subject: [ruby-changes:67387] 077bc98ce4 (master): [ruby/irb] Follow that Dialog#contents_width has been renamed to #width

https://git.ruby-lang.org/ruby.git/commit/?id=077bc98ce4

From 077bc98ce42be3c22da1087ef9774065277612f9 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Tue, 31 Aug 2021 15:14:16 +0900
Subject: [ruby/irb] Follow that Dialog#contents_width has been renamed to
 #width

https://github.com/ruby/irb/commit/49a73d929e
---
 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 fb7e1d6..865aad5 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -360,7 +360,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/input-method.rb#L360
       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')
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]