Fixed incorrect line deletion in UITextInput