Skip to content

Commit

Permalink
Change debug test workaround only enabled when output is tty (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored May 4, 2024
1 parent b1ef58a commit 3f231b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def initialize
#
# 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
Expand Down

0 comments on commit 3f231b8

Please sign in to comment.