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 /win32/ScintillaWin.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 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 1155cd47d..1699b769f 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1357,7 +1357,7 @@ void ScintillaWin::InsertPasteText(const char *text, int len, SelectionPosition void ScintillaWin::Paste() { if (!::OpenClipboard(MainHWND())) return; - pdoc->BeginUndoAction(); + UndoGroup ug(pdoc); bool isLine = SelectionEmpty() && (::IsClipboardFormatAvailable(cfLineSelect) != 0); ClearSelection(); SelectionPosition selStart = sel.Range(sel.Main()).Start(); @@ -1439,7 +1439,6 @@ void ScintillaWin::Paste() { } } ::CloseClipboard(); - pdoc->EndUndoAction(); NotifyChange(); Redraw(); } |
