summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-04-30 11:36:23 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-04-30 11:36:23 +0900
commiteba9e04e2ef2b0c17c0f80bde92469409bec0713 (patch)
tree3f454275e324392fcd2bbb6af81fca00be426cd9 /src
parent33f32de6906ebc73c1eec3f556955077ff4b588b (diff)
Export FZF_PREVIEW_HEIGHT instead of FZF_HEIGHT
https://github.com/junegunn/fzf.vim/issues/361
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go1
1 files changed, 1 insertions, 0 deletions
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: