aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/UndoHistory.cxx
diff options
context:
space:
mode:
authorJohn Ehresman <unknown>2024-03-02 16:58:47 +1100
committerJohn Ehresman <unknown>2024-03-02 16:58:47 +1100
commite99c07091ec1cebc855bcda42426286872d3a667 (patch)
tree8ff2d1252c2d262393fa5f53a54e50eb97510aa1 /src/UndoHistory.cxx
parent899913225fe6cc67b30be125ef222ce93b87eb22 (diff)
downloadscintilla-mirror-e99c07091ec1cebc855bcda42426286872d3a667.tar.gz
Feature [feature-requests:#1511] Add mayCoalesce argument to BeginUndoAction.
Diffstat (limited to 'src/UndoHistory.cxx')
-rw-r--r--src/UndoHistory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UndoHistory.cxx b/src/UndoHistory.cxx
index 0c8644f16..c94d0690c 100644
--- a/src/UndoHistory.cxx
+++ b/src/UndoHistory.cxx
@@ -322,10 +322,10 @@ const char *UndoHistory::AppendAction(ActionType at, Sci::Position position, con
return dataNew;
}
-void UndoHistory::BeginUndoAction() noexcept {
+void UndoHistory::BeginUndoAction(bool mayCoalesce) noexcept {
if (undoSequenceDepth == 0) {
if (currentAction > 0) {
- actions.types[PreviousAction()].mayCoalesce = false;
+ actions.types[PreviousAction()].mayCoalesce = mayCoalesce;
}
}
undoSequenceDepth++;