[AS7-6352]

fixes cursor position when doing changes to text
cannot reproduce [AS7-6426] with this changes, but need more info
to confirm