Fix bug in --paragraph option when pattern matches at the end of the line.