We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 317ca9d commit 26871d2Copy full SHA for 26871d2
src/utils.ts
@@ -47,7 +47,7 @@ function diffLines(prev: string, current: string) {
47
dmp.diff_charsToLines_(diffs, lineArray)
48
return diffs.map((x) => {
49
const [type, text] = x
50
- const count = text.trim().split('\n').length
+ const count = text.replace(/\n$/, '').split('\n').length
51
const change: Diff.Change = {
52
count,
53
value: text,
0 commit comments