richedit: Initialize all the cursors at editor creation.

This commit is contained in:
Eric Pouech 2008-01-04 21:12:09 +01:00 committed by Alexandre Julliard
parent a3597cbe3b
commit f33a27517b

View File

@ -1172,6 +1172,8 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) {
ed->pCursors[0].nOffset = 0;
ed->pCursors[1].pRun = ME_FindItemFwd(ed->pBuffer->pFirst, diRun);
ed->pCursors[1].nOffset = 0;
ed->pCursors[2] = ed->pCursors[0];
ed->pCursors[3] = ed->pCursors[1];
ed->nLastTotalLength = ed->nTotalLength = 0;
ed->nHeight = 0;
ed->nUDArrowX = -1;