From e62b149647797146d88b7a84f0e4cd39449c48c0 Mon Sep 17 00:00:00 2001 From: tzmfreedom Date: Wed, 22 Aug 2018 01:16:37 +0900 Subject: [PATCH] Apply local on first repl execution --- lib/better_errors/repl/pry.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/better_errors/repl/pry.rb b/lib/better_errors/repl/pry.rb index 4390ec7e..8c69295c 100644 --- a/lib/better_errors/repl/pry.rb +++ b/lib/better_errors/repl/pry.rb @@ -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