From eba9e04e2ef2b0c17c0f80bde92469409bec0713 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 30 Apr 2017 11:36:23 +0900 Subject: Export FZF_PREVIEW_HEIGHT instead of FZF_HEIGHT https://github.com/junegunn/fzf.vim/issues/361 --- src/terminal.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/terminal.go b/src/terminal.go index 2802edd9..5aab6cd0 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -580,6 +580,7 @@ func (t *Terminal) resizeWindows() { pwidth += 1 } t.pwindow = t.tui.NewWindow(y+1, x+2, pwidth, h-2, tui.BorderNone) + os.Setenv("FZF_PREVIEW_HEIGHT", strconv.Itoa(h-2)) } switch t.preview.position { case posUp: -- cgit v1.2.3