Skip to content

Commit 114aeeb

Browse files
fix miss syntax for cache
1 parent 67c269d commit 114aeeb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/src/diff-file.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,13 @@ export class DiffFile {
748748
(registerHighlighter
749749
? registerHighlighter.name === this.#highlighterName && registerHighlighter.type === this.#highlighterType
750750
: true)
751-
)
751+
) {
752+
this.#newFileSyntaxLines = this.#newFileResult?.syntaxFile;
753+
754+
this.#oldFileSyntaxLines = this.#oldFileResult?.syntaxFile;
755+
752756
return;
757+
}
753758

754759
this.#doSyntax({ registerHighlighter });
755760

0 commit comments

Comments
 (0)