Skip to content

Commit 5e468cc

Browse files
update
1 parent b761cec commit 5e468cc

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

packages/core/src/diff-file.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ import { DiffLine, DiffLineType, parseInstance, getDiffRange, getLang } from "./
66
import type { IRawDiff } from "./parse";
77
import type { DiffHighlighter, DiffHighlighterLang } from "@git-diff-view/lowlight";
88

9-
export const composeLen = 40;
9+
let composeLen = 40;
10+
11+
export const changeDefaultComposeLength = (compose: number) => {
12+
composeLen = compose;
13+
}
14+
15+
export const resetDefaultComposeLength = () => {
16+
composeLen = 40;
17+
}
1018

1119
const idSet = new Set<string>();
1220

0 commit comments

Comments
 (0)