From 21ab64e96213ec99cf3f6f207690ffe710713fcc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 2 Nov 2023 01:35:36 +0900 Subject: sixel: Export $FZF_PREVIEW_TOP to the preview command (#2544) So that it can determine if it should subtract 1 from $FZF_PREVIEW_LINES to avoid scrolling issue of Sixel image that touches the bottom of the screen. --- src/tui/light.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tui/light.go') diff --git a/src/tui/light.go b/src/tui/light.go index e9cf04eb..d26a48f6 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -720,6 +720,10 @@ func (r *LightRenderer) Close() { r.restoreTerminal() } +func (r *LightRenderer) Top() int { + return r.yoffset +} + func (r *LightRenderer) MaxX() int { return r.width } -- cgit v1.2.3