Commit ca8e3139 authored by Krishna Murthy's avatar Krishna Murthy Committed by Alexandre Julliard

Modified EDIT_EM_Undo(): Removed undo buffer length check for

empty. EDIT_EM_ReplaceSel() is called with send_update parameter set to TRUE.
parent 803ca3cb
......@@ -3555,8 +3555,6 @@ static BOOL EDIT_EM_Undo(EDITSTATE *es)
return !(es->style & ES_MULTILINE);
ulength = strlenW(es->undo_text);
if( ulength == 0 )
return !(es->style & ES_MULTILINE);
utext = HeapAlloc(GetProcessHeap(), 0, (ulength + 1) * sizeof(WCHAR));
......@@ -3567,7 +3565,7 @@ static BOOL EDIT_EM_Undo(EDITSTATE *es)
EDIT_EM_SetSel(es, es->undo_position, es->undo_position + es->undo_insert_count, FALSE);
EDIT_EM_EmptyUndoBuffer(es);
EDIT_EM_ReplaceSel(es, TRUE, utext, FALSE, TRUE);
EDIT_EM_ReplaceSel(es, TRUE, utext, TRUE, TRUE);
EDIT_EM_SetSel(es, es->undo_position, es->undo_position + es->undo_insert_count, FALSE);
/* send the notification after the selection start and end are set */
EDIT_NOTIFY_PARENT(es, EN_CHANGE, "EN_CHANGE");
......
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