summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomoya ishida <tomoyapenguin@gmail.com>2024-05-04 18:03:52 +0900
committergit <svn-admin@ruby-lang.org>2024-05-04 09:03:55 +0000
commit96710a3139fecda4bc12cd4f321399f71887535c (patch)
treec9c740905c4d1babc2b27e056fa62d266b708888
parentbd42f0898de26e8e6cb9930e0f5e309aacdeb705 (diff)
[ruby/irb] Change debug test workaround only enabled when output is
tty (https://github.com/ruby/irb/pull/949) https://github.com/ruby/irb/commit/3f231b8622
-rw-r--r--lib/irb/input-method.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 9a24c885ba..684527edc4 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -67,7 +67,7 @@ module IRB
#
# See IO#gets for more information.
def gets
- puts
+ puts if @stdout.tty? # workaround for debug compatibility test
print @prompt
line = @stdin.gets
@line[@line_no += 1] = line