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:
parent
4967984d94
commit
1f6b8c7fd9
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue