Fix to the highlight issue

- new line at the end of the search list would break the highlighter and
  throw a warning
  - fixed