Fix 78aed0d

This commit is contained in:
Caleb Bassi 2019-01-25 20:25:41 -08:00
parent 78aed0d9bf
commit 9235982f70

View File

@ -89,10 +89,10 @@ func (self *Sparklines) Draw(buf *Buffer) {
"invalid sparkline data value. index: %v, percent: %v, curItem: %v, offset: %v",
index, percent, curItem, offset,
)
continue
}
} else {
char = BARS[index]
}
}
buf.SetCell(
NewCell(char, NewStyle(line.LineColor)),
image.Pt(self.Inner.Min.X+x-1, self.Inner.Min.Y+sparkY-1),