fixed line wrapping bug

previous was not getting reset on each new row resulting in wrapped
matches