on main help sign in
chore(diffview): remove unused `SyntaxHighlight` option
e3bf5aeAndrey Nering
internal/exp/diffview/diffview.go−7
@@ -38,7 +38,6 @@ type DiffView struct {
38 after file
38 after file
39 contextLines int
39 contextLines int
40 lineNumbers bool
40 lineNumbers bool
41− highlight bool
42 height int
41 height int
43 width int
42 width int
44 xOffset int
43 xOffset int
@@ -115,12 +114,6 @@ func (dv *DiffView) LineNumbers(lineNumbers bool) *DiffView {
115 return dv
114 return dv
116}
115}
117
116
118−// SyntaxHightlight sets whether to enable syntax highlighting in the DiffView.
119−func (dv *DiffView) SyntaxHightlight(highlight bool) *DiffView {
120− dv.highlight = highlight
121− return dv
122−}
123−
124// Height sets the height of the DiffView.
117// Height sets the height of the DiffView.
125func (dv *DiffView) Height(height int) *DiffView {
118func (dv *DiffView) Height(height int) *DiffView {
126 dv.height = height
119 dv.height = height