aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-01-29 10:00:30 +0000
committernyamatongwe <unknown>2001-01-29 10:00:30 +0000
commite680417ff6ee0f18cfd4d522eb358073db73c40a (patch)
tree60742ae45ba764d54bc8b988401e6efb9458894f /src/Editor.cxx
parente5da2afe2454033576cdee2a44f4b4a25ed21fe6 (diff)
downloadscintilla-mirror-e680417ff6ee0f18cfd4d522eb358073db73c40a.tar.gz
Fixed problem where BeginUndoAction and EndUndoAction were in wrong order.
Made both the effects of backspace and delete keys be coalesced together into undo actions.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 1ea5d17e4..c638ca5b3 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1568,9 +1568,9 @@ void Editor::ClearSelection() {
unsigned int chars = SelectionEnd() - startPos;
SetEmptySelection(startPos);
if (0 != chars) {
- pdoc->EndUndoAction();
- pdoc->DeleteChars(startPos, chars);
pdoc->BeginUndoAction();
+ pdoc->DeleteChars(startPos, chars);
+ pdoc->EndUndoAction();
}
}
}