aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-07-10 04:24:46 +0000
committernyamatongwe <unknown>2009-07-10 04:24:46 +0000
commitb9c0ee83ce4b36dd6bdb121cf80ec2a95359e16e (patch)
tree7dfdab1ffa28fd8f49bb447e5ecf7b3a240d92e9 /src/ScintillaBase.cxx
parentd97f2a1f599a6fdfa408a5a6c01411c03569a899 (diff)
downloadscintilla-mirror-b9c0ee83ce4b36dd6bdb121cf80ec2a95359e16e.tar.gz
Duplicate works on discontiguous selections by duplicating each selection.
UndoGroup class simplifies grouping actions together in the undo history.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 0a8912c7b..0d25b248c 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -373,7 +373,7 @@ void ScintillaBase::AutoCompleteCompleted() {
endPos = pdoc->ExtendWordSelect(endPos, 1, true);
if (endPos < firstPos)
return;
- pdoc->BeginUndoAction();
+ UndoGroup ug(pdoc);
if (endPos != firstPos) {
pdoc->DeleteChars(firstPos, endPos - firstPos);
}
@@ -383,7 +383,6 @@ void ScintillaBase::AutoCompleteCompleted() {
pdoc->InsertCString(firstPos, piece.c_str());
SetEmptySelection(firstPos + static_cast<int>(piece.length()));
}
- pdoc->EndUndoAction();
}
int ScintillaBase::AutoCompleteGetCurrent() {