From 3073ca3e5a486e004c6d2f48d72bef8e49c35818 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 4 Mar 2016 15:23:07 +0900 Subject: [neovim] Take total number of tab pages into account (#520) This fixes the problem where a new tab page is not closed when the following configuration is used: let g:fzf_layout = { 'window': 'execute (tabpagenr()-1)."tabnew"' } --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/fzf.vim b/plugin/fzf.vim index ac508a68..159b205c 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -285,7 +285,7 @@ function! s:calc_size(max, val, dict) endfunction function! s:getpos() - return {'tab': tabpagenr(), 'win': winnr(), 'cnt': winnr('$')} + return {'tab': tabpagenr(), 'win': winnr(), 'cnt': winnr('$'), 'tcnt': tabpagenr('$')} endfunction function! s:split(dict) -- cgit v1.2.3