Skip to content

Commit

Permalink
refactor: remove redundant rectangle filler
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Apr 1, 2021
1 parent 513794a commit 447ca4b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/engine.go
Expand Up @@ -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))
Expand Down

0 comments on commit 447ca4b

Please sign in to comment.