Chris Bracken 5d9a642257 Update selection base when deleting surrogates (#3558)
Ensure selection base is updated when deleting surrogates

This fixes a bug in which the selection base was not updated when
deleting at index of the trailing char of a Unicode surrogate,
introduced in 38664ac32223228476166b9050ab400c102fda05.

Minor refactor to consolidate logic around NSRange.
2017-04-03 23:12:02 -07:00
..
2017-03-29 13:04:25 -07:00