Skip to content
Myr

[vim] Increase window height by 2 when --border is set

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

Close #1535

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

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:plugin/fzf.vim+2 added-1 removed
604 unmodified lines
605 if type(get(a:dict, 'source', 0)) == type([])606 let srcsz = len(a:dict.source)607 endif608609 let opts = s:evaluate_opts(get(a:dict, 'options', '')).$FZF_DEFAULT_OPTS609 let opts = $FZF_DEFAULT_OPTS.' '.s:evaluate_opts(get(a:dict, 'options', ''))610 let margin = stridx(opts, '--inline-info') > stridx(opts, '--no-inline-info') ? 1 : 2611 let margin += stridx(opts, '--border') > stridx(opts, '--no-border') ? 2 : 0612 let margin += stridx(opts, '--header') > stridx(opts, '--no-header')613 return srcsz >= 0 ? min([srcsz + margin, size]) : size614endfunction615
197 unmodified lines