aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authorJakub Vrana <jakub@vrana.cz>2012-11-10 11:32:43 -0800
committerJakub Vrana <jakub@vrana.cz>2012-11-10 11:32:43 -0800
commit971b824a22f383373a6fe45e0fae1e06944a25e5 (patch)
tree68f2d18ae1c0acc2a089fa837a6ab5e22d607acf /src/ScintillaBase.cxx
parentc854480ced92a08d08723b5c042d7715bc6067bf (diff)
downloadscintilla-mirror-971b824a22f383373a6fe45e0fae1e06944a25e5.tar.gz
Group undo actions in autocomplete
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index b3b0b679f..5fc908e91 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -202,6 +202,7 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) {
const char *typeSep = strchr(list, ac.GetTypesep());
int lenInsert = typeSep ?
static_cast<int>(typeSep-list) : static_cast<int>(strlen(list));
+ UndoGroup ug(pdoc);
if (ac.ignoreCase) {
SetEmptySelection(sel.MainCaret() - lenEntered);
pdoc->DeleteChars(sel.MainCaret(), lenEntered);