Fixed search result navigation after clicking beyond the end of line.