This function didn't really change - its contents just got split apart into `_getNextMatch()` and `_selectAndScrollTo()`.