Skip to content

Commit

Permalink
Provide pry's command prompt after eval
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDaugherty committed Aug 5, 2017
1 parent b02636b commit 404c31f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/better_errors/pry/repl/pry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def send_input(str)
end

def prompt
if indent = @pry.instance_variable_get(:@indent) and !indent.indent_level.empty?
if @pry.respond_to? :select_prompt
[@pry.select_prompt, ""]
elsif indent = @pry.instance_variable_get(:@indent) and !indent.indent_level.empty?
["..", indent.indent_level]
else
[">>", ""]
Expand Down

0 comments on commit 404c31f

Please sign in to comment.