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

ruby-changes:67597

From: aycabta <ko1@a...>
Date: Sat, 4 Sep 2021 21:57:24 +0900 (JST)
Subject: [ruby-changes:67597] c8bf45f23c (master): [ruby/irb] Show doc at the same height as the autocompletion dialog

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

From c8bf45f23c9ef0bdd6658c05007f028971c53ad2 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Thu, 2 Sep 2021 16:16:38 +0900
Subject: [ruby/irb] Show doc at the same height as the autocompletion dialog

https://github.com/ruby/irb/commit/a9db71e6bc
---
 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 10765a2..9873e4f 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -376,7 +376,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/input-method.rb#L376
       x = cursor_pos_to_render.x + autocomplete_dialog.width
       #x = cursor_pos_to_render.x - width if x + width >= screen_width
       x = autocomplete_dialog.column - width if x + width >= screen_width
-      y = cursor_pos_to_render.y + pointer - autocomplete_dialog.scroll_top
+      y = cursor_pos_to_render.y
       DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: contents, width: width, bg_color: '49')
     }
 
-- 
cgit v1.1


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

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