mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-22 10:58:59 +00:00
[vim] Simplify --border injection
Prepend the border options so that the user can override them in 'options' entry of the spec.
This commit is contained in:
parent
aef39f1160
commit
0f4af38457
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user