From 50be730db62b147c743f82bb92f9cf424f36fb7f Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 10 Nov 2012 11:32:43 -0800 Subject: Group undo actions in autocomplete --- src/ScintillaBase.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(typeSep-list) : static_cast(strlen(list)); + UndoGroup ug(pdoc); if (ac.ignoreCase) { SetEmptySelection(sel.MainCaret() - lenEntered); pdoc->DeleteChars(sel.MainCaret(), lenEntered); -- cgit v1.2.3