Skip to content
Myr

[vim] Fix missing --border when --border-label is present

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

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

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:plugin/fzf.vim+2 added-2 removed
510 unmodified lines
511 let height = s:calc_size(&lines, dict.down, dict)512 let optstr .= ' --height='.height513 endif514 " Respect --border option given in 'options'515 if stridx(optstr, '--border') < 0 && stridx(optstr, '--no-border') < 0515 if match(optstr, '--border\([^-]\|$\)') < 0 && match(optstr, '--no-border\([^-]\|$\)') < 0516 let optstr .= s:border_opt(get(dict, 'window', 0))517 endif518 let prev_default_command = $FZF_DEFAULT_COMMAND519 if len(source_command)
220 unmodified lines
740 if opts =~ 'preview'741 return size742 endif743 let margin = match(opts, '--inline-info\|--info[^-]\{-}inline') > match(opts, '--no-inline-info\|--info[^-]\{-}\(default\|hidden\)') ? 1 : 2744 let margin += stridx(opts, '--border') > stridx(opts, '--no-border') ? 2 : 0744 let margin += match(opts, '--border\([^-]\|$\)') > match(opts, '--no-border\([^-]\|$\)') ? 2 : 0745 if stridx(opts, '--header') > stridx(opts, '--no-header')746 let margin += len(split(opts, "\n"))747 endif748 return srcsz >= 0 ? min([srcsz + margin, size]) : size
328 unmodified lines