richedit: Fixed the initialization of the word wrap mode.
This commit is contained in:
parent
3266420a1e
commit
8b6eea0a63
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue