def METHOD_NAME(self, count, reverse=False):
    """Repeat last search.
    Used by the search-next and search-prev commands.
    """
    reverse = reverse if not self._reverse else not reverse
    mode = api.modes.current()
    if not self._text:
        raise api.commands.CommandError("No search performed")
    self._run(self._text, mode, count, reverse, False)