Skip to content

Commit 3c2976d

Browse files
fix(status): end segments correctly
1 parent cf87473 commit 3c2976d

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/config/default.go

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,10 @@ func statuslineCLIConfig(hash uint64, segmentType SegmentType, template string)
260260
Template: "{{ if .Segments.Git.Dir }} \uf1d2 <i><b>{{ .Segments.Git.RepoName }}{{ if .Segments.Git.IsWorkTree }} \ue21c{{ end }}</b></i>{{ $rel := .Segments.Git.RelativeDir }}{{ if $rel }} \ueaf7 {{ .Format $rel }}{{ end }}{{ else }} \uea83 {{ path .Path .Location }}{{ end }} ", //nolint:lll
261261
},
262262
{
263-
Type: GIT,
264-
Style: Diamond,
265-
LeadingDiamond: "<parentBackground,background>\ue0b0</>",
266-
TrailingDiamond: "\ue0b4",
267-
Foreground: paletteBlack,
268-
Background: paletteGreen,
263+
Type: GIT,
264+
Style: Plain,
265+
Foreground: paletteBlack,
266+
Background: paletteGreen,
269267
BackgroundTemplates: []string{
270268
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}",
271269
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}",
@@ -282,6 +280,13 @@ func statuslineCLIConfig(hash uint64, segmentType SegmentType, template string)
282280
},
283281
Template: " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ nospace .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", //nolint:lll
284282
},
283+
{
284+
Type: TEXT,
285+
Style: Plain,
286+
Background: backgroundTransparent,
287+
Foreground: color.ParentBackground,
288+
Template: "\ue0b0",
289+
},
285290
},
286291
},
287292
{

0 commit comments

Comments
 (0)