From 1a100a2919711edc2a729501c985e85b6ccccf27 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 31 Mar 2014 13:36:58 +0900 Subject: [PATCH] No need for screenrow() --- plugin/fzf.vim | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 1bc31cc6..c75e9af2 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -108,15 +108,6 @@ function! s:execute(dict, command, temps) endif endfunction -function! s:screenrow() - try - execute "normal! :let g:_screenrow = screenrow()\" - return g:_screenrow - finally - unlet! g:_screenrow - endtry -endfunction - function! s:execute_tmux(dict, command, temps) if has_key(a:dict, 'dir') let command = 'cd '.s:escape(a:dict.dir).' && '.a:command @@ -126,7 +117,7 @@ function! s:execute_tmux(dict, command, temps) if type(a:dict.tmux) == 1 if a:dict.tmux =~ '%$' - let height = s:screenrow() * str2nr(a:dict.tmux[0:-2]) / 100 + let height = &lines * str2nr(a:dict.tmux[0:-2]) / 100 else let height = str2nr(a:dict.tmux) endif