diff options
| author | John Ehresman <unknown> | 2024-03-02 16:58:47 +1100 |
|---|---|---|
| committer | John Ehresman <unknown> | 2024-03-02 16:58:47 +1100 |
| commit | e99c07091ec1cebc855bcda42426286872d3a667 (patch) | |
| tree | 8ff2d1252c2d262393fa5f53a54e50eb97510aa1 /src/UndoHistory.cxx | |
| parent | 899913225fe6cc67b30be125ef222ce93b87eb22 (diff) | |
| download | scintilla-mirror-e99c07091ec1cebc855bcda42426286872d3a667.tar.gz | |
Feature [feature-requests:#1511] Add mayCoalesce argument to BeginUndoAction.
Diffstat (limited to 'src/UndoHistory.cxx')
| -rw-r--r-- | src/UndoHistory.cxx | 4 |
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++; |
