From dbb9d63f1e7eacb494969337228d41325ae94d5c Mon Sep 17 00:00:00 2001 From: tompng Date: Tue, 8 Oct 2024 03:42:54 +0900 Subject: [PATCH] Change debug test workaround to use ENV RUBY_DEBUG_TEST_UI --- lib/irb/input-method.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 210d3da78..38f05d771 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -67,7 +67,9 @@ def initialize # # See IO#gets for more information. def gets - puts if @stdout.tty? # workaround for debug compatibility test + # Workaround for debug compatibility test https://github.com/ruby/debug/pull/1100 + puts if ENV['RUBY_DEBUG_TEST_UI'] + print @prompt line = @stdin.gets @line[@line_no += 1] = line