summaryrefslogtreecommitdiffstats
path: root/pkg/commands/patch/patch_parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/patch/patch_parser.go')
-rw-r--r--pkg/commands/patch/patch_parser.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/commands/patch/patch_parser.go b/pkg/commands/patch/patch_parser.go
index 1fefe0748..c2be120c9 100644
--- a/pkg/commands/patch/patch_parser.go
+++ b/pkg/commands/patch/patch_parser.go
@@ -98,7 +98,7 @@ func (l *PatchLine) render(selected bool, included bool) string {
return coloredString(style.FgCyan, match[1], selected, included) + coloredString(theme.DefaultTextColor, match[2], selected, false)
}
- textStyle := theme.DefaultTextColor
+ var textStyle style.TextStyle
switch l.Kind {
case PATCH_HEADER:
textStyle = textStyle.SetBold()
@@ -108,6 +108,8 @@ func (l *PatchLine) render(selected bool, included bool) string {
textStyle = style.FgRed
case COMMIT_SHA:
textStyle = style.FgYellow
+ default:
+ textStyle = theme.DefaultTextColor
}
return coloredString(textStyle, content, selected, included)