diff options
Diffstat (limited to 'plugin/fzf.vim')
| -rw-r--r-- | plugin/fzf.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index fc45c797..e1a5d3da 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -629,6 +629,9 @@ function! s:calc_size(max, val, dict) endif let opts = $FZF_DEFAULT_OPTS.' '.s:evaluate_opts(get(a:dict, 'options', '')) + if opts =~ 'preview' + return size + endif let margin = match(opts, '--inline-info\|--info[^-]\{-}inline') > match(opts, '--no-inline-info\|--info[^-]\{-}\(default\|hidden\)') ? 1 : 2 let margin += stridx(opts, '--border') > stridx(opts, '--no-border') ? 2 : 0 if stridx(opts, '--header') > stridx(opts, '--no-header') |
