Skip to content
Myr

Fix Sixel height calculation (#2544)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent a62fe3d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/terminal.go+1 added-1 removed
2029 unmodified lines
2030 if isSixel {2031 t.previewed.wipe = true2032 if t.termSize.PxHeight > 0 {2033 rows := strings.Count(passThrough, "-")2034 requiredLines = int(math.Floor(float64(rows*6*t.termSize.Lines) / float64(t.termSize.PxHeight)))2034 requiredLines = int(math.Ceil(float64(rows*6*t.termSize.Lines) / float64(t.termSize.PxHeight)))2035 }2036 }20372038 // Render wireframe when Sixel image cannot be displayed entirely
1959 unmodified lines