richedit: Fixed the initialization of the word wrap mode.

This commit is contained in:
Eric Pouech 2008-03-23 08:06:33 +01:00 committed by Alexandre Julliard
parent 3266420a1e
commit 8b6eea0a63
1 changed files with 1 additions and 1 deletions

View File

@ -1602,7 +1602,7 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) {
ed->nLastSelStart = ed->nLastSelEnd = 0;
ed->pLastSelStartPara = ed->pLastSelEndPara = ME_FindItemFwd(ed->pBuffer->pFirst, diParagraph);
ed->bRedraw = TRUE;
ed->bWordWrap = FALSE;
ed->bWordWrap = (GetWindowLongW(hWnd, GWL_STYLE) & WS_HSCROLL) ? FALSE : TRUE;
ed->bHideSelection = FALSE;
ed->nInvalidOfs = -1;
ed->pfnWordBreak = NULL;