зеркало из https://github.com/github/ruby.git
[ruby/irb] Show doc at the same height as the autocompletion dialog
https://github.com/ruby/irb/commit/a9db71e6bc
This commit is contained in:
Родитель
f7d9dd2e4c
Коммит
c8bf45f23c
|
@ -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')
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче