summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-02 16:16:38 +0900
committeraycabta <aycabta@gmail.com>2021-09-04 21:57:11 +0900
commitc8bf45f23c9ef0bdd6658c05007f028971c53ad2 (patch)
tree8e86b8112af7d5a0f579c82210051ad8f9a27223 /lib
parentf7d9dd2e4c1c0668c27093373dc08a3ede4a56f8 (diff)
[ruby/irb] Show doc at the same height as the autocompletion dialog
https://github.com/ruby/irb/commit/a9db71e6bc
Diffstat (limited to 'lib')
-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 10765a2c42..9873e4fb75 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -376,7 +376,7 @@ module IRB
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')
}