Skip to content
Snippets Groups Projects
Unverified Commit 93b8f615 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[vim] Export $FZF_HEIGHT for previewer scripts

Preview script cannot properly determine the height of fzf finder if
`--height` option is used.

https://github.com/junegunn/fzf.vim/issues/361
parent d5e72bf5
No related branches found
No related tags found
No related merge requests found
......@@ -379,7 +379,9 @@ try
let use_term = 0
endif
if use_height
let optstr .= ' --height='.s:calc_size(&lines, dict.down, dict)
let height = s:calc_size(&lines, dict.down, dict)
let $FZF_HEIGHT = height
let optstr .= ' --height='.height
elseif use_term
let optstr .= ' --no-height'
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment