This fixes an error where inserting a character before a string of the same character reported the change as occurring at the end of the character span, rather than the actual insertion position. This should fix issue #74.
I have tested this as working by inserting characters before and in a string of duplicate characters (e.g. "mm" to "mmm") and verifying that the [{ retain: <number>}, { insert: 'm' }] values are occurring at the correct position.
This fixes an error where inserting a character before a string of the same character reported the change as occurring at the end of the character span, rather than the actual insertion position. This should fix issue #74.
I have tested this as working by inserting characters before and in a string of duplicate characters (e.g. "mm" to "mmm") and verifying that the
[{ retain: <number>}, { insert: 'm' }]
values are occurring at the correct position.