Skip to content

Commit 4dd99c2

Browse files
committed
Apply local on first repl execution
1 parent 946281d commit 4dd99c2

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)