Fix Sixel height calculation (#2544)

pull/3504/head
Junegunn Choi 7 months ago
parent a62fe3df6f
commit 9a95cd5794
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -2031,7 +2031,7 @@ Loop:
t.previewed.wipe = true
if t.termSize.PxHeight > 0 {
rows := strings.Count(passThrough, "-")
requiredLines = int(math.Floor(float64(rows*6*t.termSize.Lines) / float64(t.termSize.PxHeight)))
requiredLines = int(math.Ceil(float64(rows*6*t.termSize.Lines) / float64(t.termSize.PxHeight)))
}
}

Loading…
Cancel
Save