mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-10 18:24:39 +00:00
Fix Sixel height calculation (#2544)
This commit is contained in:
parent
a62fe3df6f
commit
9a95cd5794
@ -2031,7 +2031,7 @@ Loop:
|
|||||||
t.previewed.wipe = true
|
t.previewed.wipe = true
|
||||||
if t.termSize.PxHeight > 0 {
|
if t.termSize.PxHeight > 0 {
|
||||||
rows := strings.Count(passThrough, "-")
|
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…
Reference in New Issue
Block a user