diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2018-01-26 13:48:05 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2018-01-26 13:48:05 +0900 |
| commit | eb3afc03b57a20d1062880efe8e000abceeba3ee (patch) | |
| tree | d0fc46734712cd24ede58804dbeee08c9a95dd29 /plugin/fzf.vim | |
| parent | 7f0caf06833130727b238a2afeb58f3b5096a34c (diff) | |
| download | fzf-eb3afc03b57a20d1062880efe8e000abceeba3ee.tar.gz | |
[vim] Make list options compatible with layout options
Fix #1205
Diffstat (limited to 'plugin/fzf.vim')
| -rw-r--r-- | plugin/fzf.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 27b5332e..7c313787 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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 |
