Skip to content
Myr

[neovim] Take total number of tab pages into account (#520)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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"' }

authored by Junegunn Choi · committed by Junegunn Choi · parent b47ab63 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
283 unmodified lines
284 return srcsz >= 0 ? min([srcsz + margin, size]) : size285endfunction286287function! s:getpos()288 return {'tab': tabpagenr(), 'win': winnr(), 'cnt': winnr('$')}288 return {'tab': tabpagenr(), 'win': winnr(), 'cnt': winnr('$'), 'tcnt': tabpagenr('$')}289endfunction290291function! s:split(dict)292 let directions = {
167 unmodified lines