diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-01-27 14:00:12 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-01-27 14:00:22 +0900 |
commit | 0f4af384571aaf6bcf9146c345feb5c6916c6790 (patch) | |
tree | aaa0e383ceda961f613869efda55058bb916215b /plugin | |
parent | aef39f1160e25484ff8a6ec7ce1f942d8da3fe03 (diff) |
[vim] Simplify --border injection
Prepend the border options so that the user can override them in
'options' entry of the spec.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index e0eb8718..94065e3c 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -512,9 +512,7 @@ try let optstr .= ' --height='.height endif " Respect --border option given in 'options' - if match(optstr, '--border\([^-]\|$\)') < 0 && match(optstr, '--no-border\([^-]\|$\)') < 0 - let optstr .= s:border_opt(get(dict, 'window', 0)) - endif + let optstr = join([s:border_opt(get(dict, 'window', 0)), optstr]) let prev_default_command = $FZF_DEFAULT_COMMAND if len(source_command) let $FZF_DEFAULT_COMMAND = source_command |