The cursor & selection weren't updated after converting between tabs & spaces, meaning they could be invalid (in the middle of a UTF8 byte sequence or out of bounds). Resolve by storing the column and restoring it afterwards.
The cursor & selection weren't updated after converting between tabs & spaces, meaning they could be invalid (in the middle of a UTF8 byte sequence or out of bounds). Resolve by storing the column and restoring it afterwards.