class Reline::LineEditor::DialogProcScope
def preferred_dialog_height
def preferred_dialog_height rest_height = @line_editor.instance_variable_get(:@rest_height) scroll_partial_screen = @line_editor.instance_variable_get(:@scroll_partial_screen) || 0 [cursor_pos.y - scroll_partial_screen, rest_height, (screen_height + 6) / 5].max end