Fix cursor position when text changes.