зеркало из https://github.com/github/ruby.git
[ruby/irb] Calculate right side doc dialog width correctly
https://github.com/ruby/irb/commit/f34da7fa04
This commit is contained in:
Родитель
374efa8e30
Коммит
576eccf76d
|
@ -369,7 +369,7 @@ module IRB
|
||||||
|
|
||||||
right_x = cursor_pos_to_render.x + autocomplete_dialog.width
|
right_x = cursor_pos_to_render.x + autocomplete_dialog.width
|
||||||
if right_x + width > screen_width
|
if right_x + width > screen_width
|
||||||
right_width = screen_width - (right_x + 0)
|
right_width = screen_width - (right_x + 1)
|
||||||
left_x = autocomplete_dialog.column - width
|
left_x = autocomplete_dialog.column - width
|
||||||
left_x = 0 if left_x < 0
|
left_x = 0 if left_x < 0
|
||||||
left_width = width > autocomplete_dialog.column ? autocomplete_dialog.column : width
|
left_width = width > autocomplete_dialog.column ? autocomplete_dialog.column : width
|
||||||
|
|
Загрузка…
Ссылка в новой задаче