File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ deadline time.Time) []Diff {
325
325
// Convert the diff back to original text.
326
326
diffs = dmp .DiffCharsToLines (diffs , linearray )
327
327
// Eliminate freak matches (e.g. blank lines)
328
- dmp .DiffCleanupSemantic (diffs )
328
+ diffs = dmp .DiffCleanupSemantic (diffs )
329
329
330
330
// Rediff any replacement blocks, this time character-by-character.
331
331
// Add a dummy entry at the end.
@@ -349,7 +349,7 @@ deadline time.Time) []Diff {
349
349
// Upon reaching an equality, check for prior redundancies.
350
350
if count_delete >= 1 && count_insert >= 1 {
351
351
// Delete the offending records and add the merged ones.
352
- diffs : = splice (diffs , pointer - count_delete - count_insert ,
352
+ diffs = splice (diffs , pointer - count_delete - count_insert ,
353
353
count_delete + count_insert )
354
354
355
355
pointer = pointer - count_delete - count_insert
@@ -360,10 +360,10 @@ deadline time.Time) []Diff {
360
360
pointer = pointer + len (a )
361
361
}
362
362
363
- // count_insert : = 0
364
- // count_delete : = 0
365
- // text_delete : = ""
366
- // text_insert : = ""
363
+ count_insert = 0
364
+ count_delete = 0
365
+ text_delete = ""
366
+ text_insert = ""
367
367
}
368
368
pointer ++
369
369
}
You can’t perform that action at this time.
0 commit comments