diff options
| author | nyamatongwe <devnull@localhost> | 2009-07-10 04:24:46 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-07-10 04:24:46 +0000 |
| commit | f69c0d399c57d25cda78177a197a0b71d1dc5118 (patch) | |
| tree | 7dfdab1ffa28fd8f49bb447e5ecf7b3a240d92e9 /src/ScintillaBase.cxx | |
| parent | 3eeaf52c92f9524044cf9d118ca3c92ea41769f5 (diff) | |
| download | scintilla-mirror-f69c0d399c57d25cda78177a197a0b71d1dc5118.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.cxx | 3 |
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() { |
