Skip to content

Commit

Permalink
Show doc at the same height as the autocompletion dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 2, 2021
1 parent 7dda1f8 commit a9db71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/input-method.rb
Expand Up @@ -362,7 +362,7 @@ def auto_indent(&block)

x = cursor_pos_to_render.x + autocomplete_dialog.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')
}

Expand Down

0 comments on commit a9db71e

Please sign in to comment.