Skip to content

Commit

Permalink
clear hooks on pry version > 0.11.x not to display source code
Browse files Browse the repository at this point in the history
  • Loading branch information
tzmfreedom committed Aug 23, 2018
1 parent 946281d commit b6b45cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/better_errors/repl/pry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def print(*args)

def initialize(binding, exception)
@fiber = Fiber.new do
@pry.repl binding
local ::Pry.config, color: false, pager: false do
@pry.repl binding
end
end
@input = BetterErrors::REPL::Pry::Input.new
@output = BetterErrors::REPL::Pry::Output.new
Expand Down

0 comments on commit b6b45cc

Please sign in to comment.