From a1049328d68b2d4bf90976a07048153f255b0152 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 14 Jul 2016 13:35:18 +0900 Subject: [PATCH] [vim] Adjust split size when --header option is set Close #622 --- plugin/fzf.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index c425fbe..76d9cfa 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -282,6 +282,7 @@ function! s:calc_size(max, val, dict) let opts = get(a:dict, 'options', '').$FZF_DEFAULT_OPTS let margin = stridx(opts, '--inline-info') > stridx(opts, '--no-inline-info') ? 1 : 2 + let margin += stridx(opts, '--header') > stridx(opts, '--no-header') return srcsz >= 0 ? min([srcsz + margin, size]) : size endfunction