summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-10-26 23:40:58 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-10-26 23:41:20 +0900
commite73383fbbba172c1375c4b8d09328f30516d5333 (patch)
tree09c026b863ad3e10485a7188025170a83823b3e9
parent2e8e63fb0b3b62e89472eebe9e86578598e1a541 (diff)
[vim] Add 'none' option for popup border
-rw-r--r--README-VIM.md2
-rw-r--r--plugin/fzf.vim3
2 files changed, 4 insertions, 1 deletions
diff --git a/README-VIM.md b/README-VIM.md
index 568f723f..e6325261 100644
--- a/README-VIM.md
+++ b/README-VIM.md
@@ -300,7 +300,7 @@ following options are allowed:
- `xoffset` [float default 0.5 range [0 ~ 1]]
- `highlight` [string default `'Comment'`]: Highlight group for border
- `border` [string default `rounded`]: Border style
- - `rounded` / `sharp` / `horizontal` / `vertical` / `top` / `bottom` / `left` / `right`
+ - `rounded` / `sharp` / `horizontal` / `vertical` / `top` / `bottom` / `left` / `right` / `none`
`fzf#wrap`
----------
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 065ac156..671f4537 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -667,6 +667,9 @@ function! s:border_opt(window)
if !has_key(a:window, 'border') && !get(a:window, 'rounded', 1)
let style = 'sharp'
endif
+ if style == 'none'
+ return ''
+ endif
let opt = ' --border=' . style
if has_key(a:window, 'highlight')