on main help sign in
fix: do not call `SyntaxHighlight`. `ChromaStyle` is enough
d8c869aAndrey Nering
internal/tui/components/core/helpers.go+1−3
@@ -150,8 +150,6 @@ func SelectableButtons(buttons []ButtonOpts, spacing string) string {
150func DiffFormatter() *diffview.DiffView {
150func DiffFormatter() *diffview.DiffView {
151 formatDiff := diffview.New()
151 formatDiff := diffview.New()
152 style := chroma.MustNewStyle("crush", styles.GetChromaTheme())
152 style := chroma.MustNewStyle("crush", styles.GetChromaTheme())
153− diff := formatDiff.
154− SyntaxHightlight(true).
155− ChromaStyle(style)
153+ diff := formatDiff.ChromaStyle(style)
156 return diff
154 return diff
157}
155}