diff --git a/src/ansi_color.go b/src/ansi_color.go index ac9e0f0d..1a57a85c 100644 --- a/src/ansi_color.go +++ b/src/ansi_color.go @@ -108,6 +108,9 @@ func (a *AnsiColor) writeAndRemoveText(background, foreground, text, textToRemov } func (a *AnsiColor) write(background, foreground, text string) { + if len(text) == 0 { + return + } text = a.ansi.escapeText(text) text = a.ansi.formatText(text) text = a.ansi.generateHyperlink(text)