Skip to content
Myr

[neovim] Respect winborder of Neovim 0.11+ (#4389)

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

authored by jiz4oh · committed by GitHub · parent 4df842e · Browse files · 1 file+9 added−2 removed
This commit

State

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

Trailers

  • Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>

Diff stats

1 file+9 added−2 removed

  • other:+9 added−2 removed

1 file+9 added−2 removed

modified:plugin/fzf.vim+9 added-2 removed
551 unmodified lines
552 elseif use_height553 let height = s:calc_size(&lines, dict.down, dict)554 let optstr .= ' --no-tmux --height='.height555 endif556557 if exists('&winborder') && &winborder !=# '' && &winborder !=# 'none'558 " Add 1-column horizontal margin559 let optstr = join(['--margin 0,1', optstr])560 else556 " Respect --border option given in $FZF_DEFAULT_OPTS and 'options'557 let optstr = join([s:border_opt(get(dict, 'window', 0)), s:extract_option($FZF_DEFAULT_OPTS, 'border'), optstr])561 " Respect --border option given in $FZF_DEFAULT_OPTS and 'options'562 let optstr = join([s:border_opt(get(dict, 'window', 0)), s:extract_option($FZF_DEFAULT_OPTS, 'border'), optstr])563 endif564565 let command = prefix.(use_tmux ? s:fzf_tmux(dict) : fzf_exec).' '.optstr.' > '.temps.result566567 if use_term568 return s:execute_term(dict, command, temps)
542 unmodified lines