[vim] Allow 'border': 'no' to be consistent with --color=no

This commit is contained in:
Junegunn Choi 2020-10-29 01:32:41 +09:00
parent e7ca237b07
commit 569be4c6c9
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ following options are allowed:
- `yoffset` [float default 0.5 range [0 ~ 1]]
- `xoffset` [float default 0.5 range [0 ~ 1]]
- `border` [string default `rounded`]: Border style
- `rounded` / `sharp` / `horizontal` / `vertical` / `top` / `bottom` / `left` / `right` / `none`
- `rounded` / `sharp` / `horizontal` / `vertical` / `top` / `bottom` / `left` / `right` / `no[ne]`
`fzf#wrap`
----------

View File

@ -700,7 +700,7 @@ function! s:border_opt(window)
if !has_key(a:window, 'border') && !get(a:window, 'rounded', 1)
let style = 'sharp'
endif
if style == 'none'
if style == 'none' || style == 'no'
return ''
endif