richedit: Missing condition for inserting newline before table.

This case occurs when the cursor is at the start of the table, the
table is at the start of the text, and there is no selection.
This commit is contained in:
Dylan Smith 2009-01-08 09:14:10 -05:00 committed by Alexandre Julliard
parent 4967984d94
commit 1f6b8c7fd9
1 changed files with 2 additions and 1 deletions

View File

@ -2319,7 +2319,8 @@ static LRESULT ME_Char(ME_TextEditor *editor, WPARAM charCode,
else if (para == ME_GetParagraph(editor->pCursors[1].pRun) &&
cursor.nOffset + cursor.pRun->member.run.nCharOfs == 0 &&
para->member.para.prev_para->member.para.nFlags & MEPF_ROWSTART &&
!para->member.para.prev_para->member.para.nCharOfs)
!para->member.para.prev_para->member.para.nCharOfs &&
wstr == '\r')
{
/* Insert a newline before the table. */
WCHAR endl = '\r';