fix help for nextind and prevind. fixes #5156