[vim] Respect --border optin in $FZF_DEFAULT_OPTS

This commit is contained in:
Junegunn Choi 2023-05-31 20:09:14 +09:00
parent 448d7e0c5a
commit 265040a78c
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -511,8 +511,8 @@ try
let height = s:calc_size(&lines, dict.down, dict) let height = s:calc_size(&lines, dict.down, dict)
let optstr .= ' --height='.height let optstr .= ' --height='.height
endif endif
" Respect --border option given in 'options' " Respect --border option given in $FZF_DEFAULT_OPTS and 'options'
let optstr = join([s:border_opt(get(dict, 'window', 0)), optstr]) let optstr = join([s:border_opt(get(dict, 'window', 0)), $FZF_DEFAULT_OPTS, optstr])
let prev_default_command = $FZF_DEFAULT_COMMAND let prev_default_command = $FZF_DEFAULT_COMMAND
if len(source_command) if len(source_command)
let $FZF_DEFAULT_COMMAND = source_command let $FZF_DEFAULT_COMMAND = source_command