mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-31 12:12:02 -07: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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user