Put the cursor below Sixel image after showing it

* eat.el (eat--t-sixel-cleanup): Make sure the cursor is below
the image.
This commit is contained in:
Akib Azmain Turja 2023-10-04 17:32:42 +06:00
parent 8b3a38c1d5
commit 5b3e27a10d
No known key found for this signature in database
GPG key ID: 5535FCF54D88616B

7
eat.el
View file

@ -3207,10 +3207,9 @@ If NULLIFY is non-nil, nullify flushed part of Sixel buffer."
(eat--t-term-sixel-buffer eat--t-term)))
(while (>= (eat--t-cur-sixel-y cursor) -5)
(eat--t-sixel-flush-line nil)
(when (>= (eat--t-cur-sixel-y cursor) -5)
(if (eat--t-term-sixel-scroll-mode eat--t-term)
(eat--t-index)
(eat--t-cur-down)))))
(if (eat--t-term-sixel-scroll-mode eat--t-term)
(eat--t-index)
(eat--t-cur-down))))
(unless (eat--t-term-sixel-scroll-mode eat--t-term)
(eat--t-goto
(car (eat--t-term-sixel-initial-cursor-pos eat--t-term))