mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-23 15:18:29 +00:00
[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"' }
This commit is contained in:
parent
b47ab633e2
commit
3073ca3e5a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user