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/tcell.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tui/tcell.go') diff --git a/src/tui/tcell.go b/src/tui/tcell.go index cd723e32..d0a710a3 100644 --- a/src/tui/tcell.go +++ b/src/tui/tcell.go @@ -172,6 +172,10 @@ func (r *FullscreenRenderer) Init() { initTheme(r.theme, r.defaultTheme(), r.forceBlack) } +func (r *FullscreenRenderer) Top() int { + return 0 +} + func (r *FullscreenRenderer) MaxX() int { ncols, _ := _screen.Size() return int(ncols) -- cgit v1.2.3