[ruby/irb] Change debug test workaround to use ENV
RUBY_DEBUG_TEST_UI (https://github.com/ruby/irb/pull/1014) https://github.com/ruby/irb/commit/9933584754
This commit is contained in:
parent
a320833013
commit
cb19dfca2c
@ -67,7 +67,9 @@ module IRB
|
|||||||
#
|
#
|
||||||
# See IO#gets for more information.
|
# See IO#gets for more information.
|
||||||
def gets
|
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
|
print @prompt
|
||||||
line = @stdin.gets
|
line = @stdin.gets
|
||||||
@line[@line_no += 1] = line
|
@line[@line_no += 1] = line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user