Skip to content

Commit b6b45cc

Browse files
committed
clear hooks on pry version > 0.11.x not to display source code
1 parent 946281d commit b6b45cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/better_errors/repl/pry.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ def print(*args)
3838

3939
def initialize(binding, exception)
4040
@fiber = Fiber.new do
41-
@pry.repl binding
41+
local ::Pry.config, color: false, pager: false do
42+
@pry.repl binding
43+
end
4244
end
4345
@input = BetterErrors::REPL::Pry::Input.new
4446
@output = BetterErrors::REPL::Pry::Output.new

0 commit comments

Comments
 (0)