diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-03-04 15:23:07 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-03-04 15:23:07 +0900 |
commit | 3073ca3e5a486e004c6d2f48d72bef8e49c35818 (patch) | |
tree | 1c3ac1b3c76dea993d0b332517b82fff72e97141 /plugin | |
parent | b47ab633e297a64a4dacd59dea008144638d8e97 (diff) |
[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"' }
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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) |