diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-05-31 20:09:14 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-05-31 20:09:14 +0900 |
commit | 265040a78c50570b0b6e469bfe8fb282de44b115 (patch) | |
tree | bef34cdd96412441b461c0de98b2d4f11b88ffaa /plugin | |
parent | 448d7e0c5a717128d499f6a09a978b7addd1d925 (diff) |
[vim] Respect --border optin in $FZF_DEFAULT_OPTS
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 317e9316..f192ecbe 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -511,8 +511,8 @@ try let height = s:calc_size(&lines, dict.down, dict) let optstr .= ' --height='.height endif - " Respect --border option given in 'options' - let optstr = join([s:border_opt(get(dict, 'window', 0)), optstr]) + " Respect --border option given in $FZF_DEFAULT_OPTS and 'options' + let optstr = join([s:border_opt(get(dict, 'window', 0)), $FZF_DEFAULT_OPTS, optstr]) let prev_default_command = $FZF_DEFAULT_COMMAND if len(source_command) let $FZF_DEFAULT_COMMAND = source_command |