Index: dll/win32/riched20/caret.c =================================================================== --- dll/win32/riched20/caret.c (revision 42296) +++ dll/win32/riched20/caret.c (working copy) @@ -236,7 +236,7 @@ if(editor->bHaveFocus && !ME_IsSelection(editor)) { x = min(x, editor->rcFormat.right-1); - ITextHost_TxCreateCaret(editor->texthost, NULL, 0, height); + ITextHost_TxCreateCaret(editor->texthost, NULL, GetSystemMetrics(SM_CXBORDER), height); ITextHost_TxSetCaretPos(editor->texthost, x, y); } }