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

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2021-03-24 09:08:29 +00:00 committed by Alexandre Julliard
parent 47fed8f5bc
commit ff36ab092d
3 changed files with 1 additions and 2 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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 );