diff --git a/src/ansi/ansi_writer.go b/src/ansi/ansi_writer.go index 658f06c0..b9b7adc2 100644 --- a/src/ansi/ansi_writer.go +++ b/src/ansi/ansi_writer.go @@ -400,9 +400,14 @@ func (w *Writer) getAnsiFromColorString(colorString string, isBackground bool) C } func (w *Writer) write(s rune) { + if w.invisible { + return + } + if !w.hyperlink { w.length += runewidth.RuneWidth(s) } + w.builder.WriteRune(s) }