From 447ca4bb947ea2657470ff4e54e2d71235351695 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Thu, 1 Apr 2021 20:21:54 +0200 Subject: [PATCH] refactor: remove redundant rectangle filler --- src/engine.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/engine.go b/src/engine.go index f30cd3f0..2eddbc20 100644 --- a/src/engine.go +++ b/src/engine.go @@ -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))