+fix: Redo failure introduced with Scintilla v5.4.2 Bug 2432

This commit is contained in:
Pairi Daiza 2024-03-09 14:05:01 +01:00
parent 891a7a591e
commit ee7b89e305
No known key found for this signature in database
GPG Key ID: 696D11EF6A99040C

View File

@ -316,6 +316,8 @@ const char *UndoHistory::AppendAction(ActionType at, Sci::Position position, con
const char *dataNew = lengthData ? scraps->Push(data, lengthData) : nullptr;
if (currentAction >= actions.SSize()) {
actions.PushBack();
} else {
actions.Truncate(currentAction+1);
}
actions.Create(currentAction, at, position, lengthData, mayCoalesce);
currentAction++;