Skip to content

Commit

Permalink
Merge pull request #207 from dswij/StatPrompt
Browse files Browse the repository at this point in the history
A possible fix for #176 (added StaticPromptIndicator to non-newline prompt)
  • Loading branch information
justjanne authored Jun 20, 2020
2 parents 7e90d95 + e77cd3b commit acd9378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segment-root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import pwl "github.com/justjanne/powerline-go/powerline"

func segmentRoot(p *powerline) []pwl.Segment {
var foreground, background uint8
if *p.args.PrevError == 0 {
if *p.args.PrevError == 0 || *p.args.StaticPromptIndicator {
foreground = p.theme.CmdPassedFg
background = p.theme.CmdPassedBg
} else {
Expand Down

0 comments on commit acd9378

Please sign in to comment.