From 225f6c6b767cecf51239677286cbeb96cc66452c Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 4 Nov 2024 19:51:39 +0100 Subject: [PATCH] fix(segment): ignore empty colors --- src/config/segment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/segment.go b/src/config/segment.go index e2b42475..2169cfd1 100644 --- a/src/config/segment.go +++ b/src/config/segment.go @@ -46,10 +46,10 @@ type Segment struct { LeadingDiamond string `json:"leading_diamond,omitempty" toml:"leading_diamond,omitempty"` TrailingDiamond string `json:"trailing_diamond,omitempty" toml:"trailing_diamond,omitempty"` Template string `json:"template,omitempty" toml:"template,omitempty"` - Foreground color.Ansi `json:"foreground" toml:"foreground"` + Foreground color.Ansi `json:"foreground,omitempty" toml:"foreground,omitempty"` TemplatesLogic template.Logic `json:"templates_logic,omitempty" toml:"templates_logic,omitempty"` PowerlineSymbol string `json:"powerline_symbol,omitempty" toml:"powerline_symbol,omitempty"` - Background color.Ansi `json:"background" toml:"background"` + Background color.Ansi `json:"background,omitempty" toml:"background,omitempty"` Filler string `json:"filler,omitempty" toml:"filler,omitempty"` Type SegmentType `json:"type,omitempty" toml:"type,omitempty"` Alias string `json:"alias,omitempty" toml:"alias,omitempty"`