Fix #3057: Toggle Block Comment doesn't work if the open/close delimiters are the same

This hopefully fixes all the problems mentioned in #3057.