Skip to content

Commit

Permalink
refactor(hdiff): update DiffMode handling
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Dec 22, 2020
1 parent cc77c71 commit b9b2f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hdiff/src/diff.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { diffArray, DiffMode } from "@thi.ng/diff";
import { diffArray } from "@thi.ng/diff";
import { escape } from "@thi.ng/hiccup";
import { padLeft } from "@thi.ng/strings";

Expand All @@ -8,7 +8,7 @@ export const computeDiff = (a: string, b: string) => {
const edits = diffArray(
a.split("\n"),
b.split("\n"),
DiffMode.ONLY_DISTANCE_LINEAR
"only-distance-linear"
).linear!;
for (let i = 0; i < edits.length; i += 3) {
const lineID = <number>edits[i];
Expand Down

0 comments on commit b9b2f36

Please sign in to comment.