fix prevind (and thisind, nexting) for SubString, for #3710