From 8f61c12ba5c58fc50e8ca988d8df0b85ec915915 Mon Sep 17 00:00:00 2001 From: Akib Azmain Turja Date: Sat, 7 Oct 2023 22:16:58 +0600 Subject: [PATCH] Fix garbage image after the end of Sixel image * eat.el (eat--t-sixel-init): Increase Sixel buffer size. --- eat.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eat.el b/eat.el index e4c63e1..98de91e 100644 --- a/eat.el +++ b/eat.el @@ -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))