mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-29 20:10:56 -08:00
refactor: remove redundant rectangle filler
This commit is contained in:
parent
513794af46
commit
447ca4bb94
|
@ -79,13 +79,8 @@ func (e *engine) renderDiamondSegment(text string) {
|
|||
}
|
||||
|
||||
func (e *engine) renderText(text string) {
|
||||
defaultValue := " "
|
||||
if e.activeSegment.background() != "" {
|
||||
defaultValue = fmt.Sprintf("<%s>\u2588</>", e.activeSegment.background())
|
||||
}
|
||||
|
||||
text = e.color.formats.generateHyperlink(text)
|
||||
|
||||
defaultValue := " "
|
||||
prefix := e.activeSegment.getValue(Prefix, defaultValue)
|
||||
postfix := e.activeSegment.getValue(Postfix, defaultValue)
|
||||
e.color.write(e.activeSegment.background(), e.activeSegment.foreground(), fmt.Sprintf("%s%s%s", prefix, text, postfix))
|
||||
|
|
Loading…
Reference in a new issue