Skip to content
Myr

[vim] Adjust split size when --header option is set

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #622

authored by Junegunn Choi · committed by Junegunn Choi · parent 5c2b96b · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:plugin/fzf.vim+1 added
280 unmodified lines
281 endif282283 let opts = get(a:dict, 'options', '').$FZF_DEFAULT_OPTS284 let margin = stridx(opts, '--inline-info') > stridx(opts, '--no-inline-info') ? 1 : 2285 let margin += stridx(opts, '--header') > stridx(opts, '--no-header')286 return srcsz >= 0 ? min([srcsz + margin, size]) : size287endfunction288289function! s:getpos()
204 unmodified lines