Fix Sixel height calculation (#2544)

This commit is contained in:
Junegunn Choi 2023-10-29 23:34:33 +09:00
parent a62fe3df6f
commit 9a95cd5794
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
1 changed files with 1 additions and 1 deletions

View File

@ -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)))
}
}