mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+fix: Redo failure introduced with Scintilla v5.4.2 Bug 2432
This commit is contained in:
parent
891a7a591e
commit
ee7b89e305
@ -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++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user