Commit ff36ab09 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Don't call update_caret() from the host.

parent 47fed8f5
......@@ -1795,7 +1795,6 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
if (!(format & SFF_SELECTION)) {
ME_ClearTempStyle(editor);
}
update_caret(editor);
ME_SendSelChange(editor);
ME_SendRequestResize(editor, FALSE);
......
......@@ -131,6 +131,7 @@ void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now)
/* Ensure that the cursor is visible */
editor_ensure_visible( editor, &editor->pCursors[0] );
update_caret( editor );
ITextHost_TxViewChange(editor->texthost, update_now);
ME_SendSelChange(editor);
......
......@@ -1186,7 +1186,6 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
PAINTSTRUCT ps;
HBRUSH brush = CreateSolidBrush( ITextHost_TxGetSysColor( &host->ITextHost_iface, COLOR_WINDOW ) );
update_caret( editor );
hdc = BeginPaint( editor->hWnd, &ps );
if (!editor->bEmulateVersion10 || (editor->nEventMask & ENM_UPDATE))
ME_SendOldNotify( editor, EN_UPDATE );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment