Skip to content

Commit 404c31f

Browse files
Provide pry's command prompt after eval
1 parent b02636b commit 404c31f

File tree

1 file changed

+3
-1
lines changed
  • lib/better_errors/pry/repl

1 file changed

+3
-1
lines changed

lib/better_errors/pry/repl/pry.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ def send_input(str)
6161
end
6262

6363
def prompt
64-
if indent = @pry.instance_variable_get(:@indent) and !indent.indent_level.empty?
64+
if @pry.respond_to? :select_prompt
65+
[@pry.select_prompt, ""]
66+
elsif indent = @pry.instance_variable_get(:@indent) and !indent.indent_level.empty?
6567
["..", indent.indent_level]
6668
else
6769
[">>", ""]

0 commit comments

Comments
 (0)