Skip to content
Myr

[vim] Make list options compatible with layout options

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

Fix #1205

authored by Junegunn Choi · committed by Junegunn Choi · parent 7f0caf0 · Browse files · 1 file+1 added−1 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−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
584 unmodified lines
585 if type(get(a:dict, 'source', 0)) == type([])586 let srcsz = len(a:dict.source)587 endif588589 let opts = get(a:dict, 'options', '').$FZF_DEFAULT_OPTS589 let opts = s:evaluate_opts(get(a:dict, 'options', '')).$FZF_DEFAULT_OPTS590 let margin = stridx(opts, '--inline-info') > stridx(opts, '--no-inline-info') ? 1 : 2591 let margin += stridx(opts, '--header') > stridx(opts, '--no-header')592 return srcsz >= 0 ? min([srcsz + margin, size]) : size593endfunction
214 unmodified lines