Avoid unnecessary caret shape reset.
Merge pull request #284 from igrekster/avoid-set-caret

Avoid unnecessary caret shape reset.