diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-10-29 23:34:33 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-10-29 23:34:33 +0900 |
commit | 9a95cd579439edfb1963678b9a5ddecd89e13bf9 (patch) | |
tree | decea840d09fc15d77c675271e7cc173724fd14c /src | |
parent | a62fe3df6f715630f0fd6ee6879573e107bc45a0 (diff) |
Fix Sixel height calculation (#2544)
Diffstat (limited to 'src')
-rw-r--r-- | src/terminal.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go index 8c8a159e..2e36e13f 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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))) } } |