diff --git a/EGOTextView/EGOTextView.m b/EGOTextView/EGOTextView.m index cb5b4ef..c40e81e 100644 --- a/EGOTextView/EGOTextView.m +++ b/EGOTextView/EGOTextView.m @@ -1473,9 +1473,8 @@ - (void)deleteBackward { [self performSelector:@selector(showCorrectionMenuWithoutSelection) withObject:nil afterDelay:0.2f]; } - selectedNSRange.location--; - selectedNSRange.length = 1; - + selectedNSRange = [[_attributedString string] rangeOfComposedCharacterSequenceAtIndex:selectedNSRange.location - 1]; + [_mutableAttributedString beginEditing]; [_mutableAttributedString deleteCharactersInRange:selectedNSRange]; [_mutableAttributedString endEditing];