Commit 1f6b8c7f authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

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.
parent 4967984d
......@@ -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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment