lib/review/lineinput.rb in review-3.2.0 vs lib/review/lineinput.rb in review-4.0.0
- old
+ new
@@ -4,10 +4,10 @@
class LineInput < LineInput
def skip_comment_lines
n = 0
while line = gets
unless line.strip =~ /\A\#@/
- ungets line
+ ungets(line)
return n
end
n += 1
end
n