Commit 2dbcddc6 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Set a temporary insert style for the new paragraph.

parent ac6a0d89
...@@ -2392,7 +2392,6 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey) ...@@ -2392,7 +2392,6 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey)
} }
style = ME_GetInsertStyle(editor, 0); style = ME_GetInsertStyle(editor, 0);
ME_SaveTempStyle(editor, style);
ME_ContinueCoalescingTransaction(editor); ME_ContinueCoalescingTransaction(editor);
if (shift_is_down) if (shift_is_down)
ME_InsertEndRowFromCursor(editor, 0); ME_InsertEndRowFromCursor(editor, 0);
...@@ -2401,12 +2400,13 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey) ...@@ -2401,12 +2400,13 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey)
ME_InsertTextFromCursor(editor, 0, &endl, 1, style); ME_InsertTextFromCursor(editor, 0, &endl, 1, style);
else else
ME_InsertTextFromCursor(editor, 0, endlv10, 2, style); ME_InsertTextFromCursor(editor, 0, endlv10, 2, style);
ME_ReleaseStyle(style);
ME_CommitCoalescingUndo(editor); ME_CommitCoalescingUndo(editor);
SetCursor(NULL); SetCursor(NULL);
ME_UpdateSelectionLinkAttribute(editor); ME_UpdateSelectionLinkAttribute(editor);
ME_UpdateRepaint(editor, FALSE); ME_UpdateRepaint(editor, FALSE);
ME_SaveTempStyle(editor, style); /* set the temp insert style for the new para */
ME_ReleaseStyle(style);
} }
return TRUE; return TRUE;
} }
......
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