Skip to content

Commit

Permalink
Fixed inifinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeche committed Jan 23, 2022
1 parent ed4e30f commit c3aed5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ function moveTokensUntilPos(state: DiffState, textPos: number, stack: Token[]) {
}
} else if (t.type === ElementTypeAddon.Space && !t.offset) {
state.pushNext(t);
} else {
break;
}
} else {
break;
Expand Down

0 comments on commit c3aed5c

Please sign in to comment.