mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[undo] IJPL-201535 Clear and repair stacks on UndoClearHistoryAction performed
GitOrigin-RevId: 0ad1e0ffbd93233b0f919786d9ee0664a61b7705
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fefd7b20af
commit
e2712206e9
@@ -32,7 +32,7 @@ internal class UndoClearHistoryAction : UndoHistoryAction() {
|
||||
.ask(undoManager.project)
|
||||
if (confirmedClear) {
|
||||
super.perform(undoManager, editor)
|
||||
undoManager.clearStacks(editor)
|
||||
undoManager.clearAndRepairStacks(editor)
|
||||
super.perform(undoManager, editor)
|
||||
Notification(
|
||||
"Undo/redo",
|
||||
|
||||
@@ -283,6 +283,11 @@ public class UndoManagerImpl extends UndoManager {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public void clearAndRepairStacks(@Nullable FileEditor editor) {
|
||||
clearStacks(editor);
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
protected void undoOrRedo(@Nullable FileEditor editor, boolean isUndo) {
|
||||
UndoClientState state = getClientState(editor);
|
||||
|
||||
Reference in New Issue
Block a user