Fix garbage image after the end of Sixel image

* eat.el (eat--t-sixel-init): Increase Sixel buffer size.
This commit is contained in:
Akib Azmain Turja 2023-10-07 22:16:58 +06:00
parent 957fdb4a8f
commit 8f61c12ba5
No known key found for this signature in database
GPG key ID: 5535FCF54D88616B

2
eat.el
View file

@ -2961,7 +2961,7 @@ is the selection data encoded in base64."
;; default.
(setf (eat--t-term-sixel-color eat--t-term) 3)
(while (< (eat--t-term-sixel-buffer-size eat--t-term)
(+ (eat--t-term-char-height eat--t-term) 5))
(+ (* (eat--t-term-char-height eat--t-term) 2) 5))
(let ((new
(cons (cons 0 (make-vector 1000 nil))
(cons (cadr (eat--t-term-sixel-buffer eat--t-term))