From e99c07091ec1cebc855bcda42426286872d3a667 Mon Sep 17 00:00:00 2001 From: John Ehresman Date: Sat, 2 Mar 2024 16:58:47 +1100 Subject: Feature [feature-requests:#1511] Add mayCoalesce argument to BeginUndoAction. --- src/UndoHistory.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/UndoHistory.cxx') 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++; -- cgit v1.2.3