Skip to content
Snippets Groups Projects
Commit 3073ca3e authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[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"' }
parent b47ab633
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment