Fix caret re-set issue when rotated.
Merge pull request #1 from r-plus/experimental

Fix caret re-set issue when rotated. Thanks, r-plus ;)