# File lib/pry/pry_instance.rb, line 551
  def select_prompt(eval_string, target)
    target_self = target.eval('self')

    # If input buffer is empty then use normal prompt
    if eval_string.empty?
      Array(prompt).first.call(target_self, binding_stack.size - 1, self)

    # Otherwise use the wait prompt (indicating multi-line expression)
    else
      Array(prompt).last.call(target_self, binding_stack.size - 1, self)
    end
  end