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.
This commit is contained in:
Junegunn Choi committed 2023-11-02 01:35:36 +09:00
1 parent a0145cebf2
commit 21ab64e962
7 files changed
+35 -10

No files matched your search

+4
View File
@@ -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
}