File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1102,11 +1102,12 @@ bool SupportAnimatedFind() {
1102
1102
// No data or no flavor we support.
1103
1103
return ;
1104
1104
1105
- pdoc->BeginUndoAction ();
1106
- ClearSelection (false );
1107
- InsertPasteShape (selectedText.Data (), selectedText.Length (),
1108
- selectedText.rectangular ? PasteShape::rectangular : PasteShape::stream);
1109
- pdoc->EndUndoAction ();
1105
+ {
1106
+ UndoGroup ug (pdoc);
1107
+ ClearSelection (false );
1108
+ InsertPasteShape (selectedText.Data (), selectedText.Length (),
1109
+ selectedText.rectangular ? PasteShape::rectangular : PasteShape::stream);
1110
+ }
1110
1111
1111
1112
Redraw ();
1112
1113
EnsureCaretVisible ();
Original file line number Diff line number Diff line change @@ -1167,10 +1167,9 @@ void ScintillaWin::SelectionToHangul() {
1167
1167
1168
1168
if (converted) {
1169
1169
documentStr = StringEncode (uniStr, CodePageOfDocument ());
1170
- pdoc-> BeginUndoAction ( );
1170
+ UndoGroup ug (pdoc );
1171
1171
ClearSelection ();
1172
1172
InsertPaste (&documentStr[0 ], documentStr.size ());
1173
- pdoc->EndUndoAction ();
1174
1173
}
1175
1174
}
1176
1175
}
You can’t perform that action at this time.
0 commit comments