summaryrefslogtreecommitdiff
path: root/src/tui/tcell.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-11-02 01:35:36 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-11-02 01:35:36 +0900
commit21ab64e96213ec99cf3f6f207690ffe710713fcc (patch)
tree3d1ebb4ea016827751987abff3f6890d137682f9 /src/tui/tcell.go
parenta0145cebf284898fce182d78a1edae7270d16f57 (diff)
downloadfzf-21ab64e96213ec99cf3f6f207690ffe710713fcc.tar.gz
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.
Diffstat (limited to 'src/tui/tcell.go')
-rw-r--r--src/tui/tcell.go4
1 files changed, 4 insertions, 0 deletions
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)