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

pull/2233/head
Junegunn Choi 4 years ago
parent e7ca237b07
commit 569be4c6c9
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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`
----------

@ -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

Loading…
Cancel
Save