aryaxt/iOS-Rich-Text-Editor — pull request #7 by jvanmetre (2013-08-23 18:19:12+00:00)
Title: Fix for bold and italic buttons not staying highlighted when nothing is selected, and there is no text.

This is somewhat strange, when there is no text in the TextView, the attributedText length is 1. So these changes reflect that so that if there is no text, or you are at the end of the string, tapping bold or italic will keep those highlighted.