refactor(parser/diff): MaxDiffSize => MaxDiffLength
This commit is contained in:
parent
cc435f9156
commit
0df4df339f
|
@ -30,7 +30,7 @@ type Conf struct {
|
||||||
CompareSpace bool
|
CompareSpace bool
|
||||||
AlwaysHide bool
|
AlwaysHide bool
|
||||||
ForceQuitOnDiff bool
|
ForceQuitOnDiff bool
|
||||||
MaxDiffSize int
|
MaxDiffLength int
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ func (*Diff) Run(results []stage.ExecutorResult, confAny any) (
|
||||||
|
|
||||||
// Generate diff block with surrounding context
|
// Generate diff block with surrounding context
|
||||||
diffOutput := generateDiffWithContext(
|
diffOutput := generateDiffWithContext(
|
||||||
stdoutLines, resultLines, diffOps, output.MaxDiffSize)
|
stdoutLines, resultLines, diffOps, output.MaxDiffLength)
|
||||||
diffOutput = strings.TrimSuffix(diffOutput, "\n \n")
|
diffOutput = strings.TrimSuffix(diffOutput, "\n \n")
|
||||||
comment += fmt.Sprintf(
|
comment += fmt.Sprintf(
|
||||||
"```diff\n%s\n```\n",
|
"```diff\n%s\n```\n",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user