diff options
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 11 | ||||
-rw-r--r-- | win32/ScintillaWin.cxx | 3 |
2 files changed, 7 insertions, 7 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index be71de367..8419a4157 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1102,11 +1102,12 @@ void ScintillaCocoa::Paste(bool forceRectangular) { // No data or no flavor we support. return; - pdoc->BeginUndoAction(); - ClearSelection(false); - InsertPasteShape(selectedText.Data(), selectedText.Length(), - selectedText.rectangular ? PasteShape::rectangular : PasteShape::stream); - pdoc->EndUndoAction(); + { + UndoGroup ug(pdoc); + ClearSelection(false); + InsertPasteShape(selectedText.Data(), selectedText.Length(), + selectedText.rectangular ? PasteShape::rectangular : PasteShape::stream); + } Redraw(); EnsureCaretVisible(); diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index c1b330e61..5fd06cd16 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1167,10 +1167,9 @@ void ScintillaWin::SelectionToHangul() { if (converted) { documentStr = StringEncode(uniStr, CodePageOfDocument()); - pdoc->BeginUndoAction(); + UndoGroup ug(pdoc); ClearSelection(); InsertPaste(&documentStr[0], documentStr.size()); - pdoc->EndUndoAction(); } } } |