fix: remove sixel height override for tmux (#2474)
* fix: remove sixel height override for tmux * Update `CHANGELOG.md`
This commit is contained in:
1 parent
1aefc1f010
commit
c5c3de643e
2 files changed
+1
-7
No files matched your search
@@ -59,13 +59,6 @@ func (sxs *sixelScreen) printSixel(win *win, screen tcell.Screen, reg *reg) {
|
||||
iw, _ := strconv.Atoi(matches[1])
|
||||
ih, _ := strconv.Atoi(matches[2])
|
||||
|
||||
if os.Getenv("TMUX") != "" {
|
||||
// tmux rounds the image height up to a multiple of 6, so we
|
||||
// need to do the same to avoid overwriting the image, as tmux
|
||||
// would remove the image if we touched it.
|
||||
ih = (ih + 5) / 6 * 6
|
||||
}
|
||||
|
||||
sw := (iw + cw - 1) / cw
|
||||
sh := (ih + ch - 1) / ch
|
||||
|
||||
|
||||
Reference in new issue
Block a user