From 5b3e27a10de1cce2cfc645beb7d77cd7faec6b28 Mon Sep 17 00:00:00 2001 From: Akib Azmain Turja Date: Wed, 4 Oct 2023 17:32:42 +0600 Subject: [PATCH] Put the cursor below Sixel image after showing it * eat.el (eat--t-sixel-cleanup): Make sure the cursor is below the image. --- eat.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/eat.el b/eat.el index 34862c9..262d25f 100644 --- a/eat.el +++ b/eat.el @@ -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))