From f704b94603f386c7b6458ba358816f52bbad2b36 Mon Sep 17 00:00:00 2001
From: Junegunn Choi <junegunn.c@gmail.com>
Date: Sun, 6 Mar 2016 13:56:29 +0900
Subject: [PATCH] [neovim] Open tab before current tab

Related: https://github.com/junegunn/gv.vim/issues/19
---
 plugin/fzf.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 159b205c..d1c847ee 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -313,7 +313,7 @@ function! s:split(dict)
     if s:present(a:dict, 'window')
       execute a:dict.window
     else
-      tabnew
+      execute (tabpagenr()-1).'tabnew'
     endif
   finally
     setlocal winfixwidth winfixheight buftype=nofile bufhidden=wipe nobuflisted
-- 
GitLab