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

[vim] Make list options compatible with layout options

Fix #1205
parent 7f0caf06
No related branches found
No related tags found
No related merge requests found
......@@ -586,7 +586,7 @@ function! s:calc_size(max, val, dict)
let srcsz = len(a:dict.source)
endif
let opts = get(a:dict, 'options', '').$FZF_DEFAULT_OPTS
let opts = s:evaluate_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
......
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