From d8c869a62cfe3540939345809d3025de90b2ac44 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Tue, 17 Jun 2025 14:44:49 -0300 Subject: [PATCH] fix: do not call `SyntaxHighlight`. `ChromaStyle` is enough --- internal/tui/components/core/helpers.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/tui/components/core/helpers.go b/internal/tui/components/core/helpers.go index ee7340ea4f13eee4e4ac74789a9a6efcd7c4ad8b..8ec0125a280b1f0dae9b7cf94e11b4187a9c0539 100644 --- a/internal/tui/components/core/helpers.go +++ b/internal/tui/components/core/helpers.go @@ -150,8 +150,6 @@ func SelectableButtons(buttons []ButtonOpts, spacing string) string { func DiffFormatter() *diffview.DiffView { formatDiff := diffview.New() style := chroma.MustNewStyle("crush", styles.GetChromaTheme()) - diff := formatDiff. - SyntaxHightlight(true). - ChromaStyle(style) + diff := formatDiff.ChromaStyle(style) return diff }