summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-03-06 13:56:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-03-06 13:56:29 +0900
commitf704b94603f386c7b6458ba358816f52bbad2b36 (patch)
tree996a7c7d1c96798597609d873102485fc0d52f5e /plugin
parent444a67cafa569b999cc1569f2aacd27e9e537e3b (diff)
[neovim] Open tab before current tab
Related: https://github.com/junegunn/gv.vim/issues/19
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
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