* If we stopped because lineInfo == endline then we need to continue async
* scanning, otherwise this moveTo call will fail and we won't bother. We
* also have to check for the case where the viewport was already scrolled
* to the very bottom or top of the document.
*/
return lineInfo.moveTo(searchDirectionHelper.isGoingDown())
|| (searchDirectionHelper.canWrapDocument() && shouldWrapDocument);
}
/**
* Removes the search task anchors after the task has completed.