Skip to content

Commit

Permalink
Apply local on first repl execution
Browse files Browse the repository at this point in the history
  • Loading branch information
tzmfreedom committed Aug 21, 2018
1 parent 946281d commit e62b149
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 e62b149

Please sign in to comment.