fix(debug): render powerline correctly

This commit is contained in:
Jan De Dobbeleer 2021-12-17 12:19:03 +01:00 committed by Jan De Dobbeleer
parent 2fddfa1716
commit 181d906e8a

View file

@ -192,11 +192,8 @@ func (b *Block) debug() (int, []*SegmentTiming) {
start = time.Now()
segment.stringValue = segment.string()
segmentTiming.stringDuration = time.Since(start)
b.previousActiveSegment = nil
b.renderSegment(segment)
if b.activeSegment.Style == Powerline {
b.writePowerline(false)
}
b.writePowerline(true)
segmentTiming.stringValue = b.writer.string()
b.writer.reset()
}