should be selected == rightChar  for cases like `"|'`