From e73383fbbba172c1375c4b8d09328f30516d5333 Mon Sep 17 00:00:00 2001
From: Junegunn Choi <junegunn.c@gmail.com>
Date: Mon, 26 Oct 2020 23:40:58 +0900
Subject: [PATCH] [vim] Add 'none' option for popup border

---
 README-VIM.md  | 2 +-
 plugin/fzf.vim | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

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')
-- 
GitLab