# File lib/sup/modes/scroll-mode.rb, line 209 def matching_text_array s, regex, oldcolor=:none s.split(regex).map do |text| next if text.empty? if text =~ regex [:search_highlight_color, text] else [oldcolor, text] end end.compact + [[oldcolor, ""]] end