Method: Lines#write_matching
- Defined in:
- lib/glark/output/lines.rb
#write_matching(from, to) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/glark/output/lines.rb', line 48 def write_matching from, to (from .. to).each do |ln| next unless @stati.char(ln) && !@stati.is_written?(ln) # this used to be conditional on show_break, but no more if from > 0 && !@stati.char(ln - 1) && @print_context @out.puts " ---" end print_line ln, @stati.char(ln) @stati.set_as_written ln end end |