Fixed caret not updating when skipping right in the text editor