summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin/fzf.vim1
-rw-r--r--src/terminal.go1
2 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 126e16bf..fd5874c0 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -380,7 +380,6 @@ try
endif
if use_height
let height = s:calc_size(&lines, dict.down, dict)
- let $FZF_HEIGHT = height
let optstr .= ' --height='.height
elseif use_term
let optstr .= ' --no-height'
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: