Skip to content

Commit f0f6f2d

Browse files
committed
Add options to first Fiber#resume
1 parent 946281d commit f0f6f2d

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
@@ -45,7 +45,9 @@ def initialize(binding, exception)
4545
@pry = ::Pry.new input: @input, output: @output
4646
@pry.hooks.clear_all if defined?(@pry.hooks.clear_all)
4747
store_last_exception exception
48-
@fiber.resume
48+
local ::Pry.config, color: false, pager: false do
49+
@fiber.resume
50+
end
4951
end
5052

5153
def store_last_exception(exception)

0 commit comments

Comments
 (0)