Skip to content

Commit

Permalink
Fix history deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
SIsilicon committed Mar 12, 2024
1 parent f62d889 commit 5fb8592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/modules/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ export class History {
}

delete() {
while (this.undoStructures.length) {
do {
this.deleteHistoryRegions(0);
}
} while (this.undoStructures.shift());
}

private deleteHistoryRegions(index: number) {
Expand Down

0 comments on commit 5fb8592

Please sign in to comment.