Fixes: Avoid corruption of caret when SetCaretPos() is called