summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-03-31 13:36:58 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-03-31 13:36:58 +0900
commit1a100a2919711edc2a729501c985e85b6ccccf27 (patch)
tree3ed51ecbc10c1cf822151e5884a14d9b070ef423 /plugin
parenta85bb93b69c09a7c178bd23468344ffd2709c1e0 (diff)
downloadfzf-1a100a2919711edc2a729501c985e85b6ccccf27.tar.gz
No need for screenrow()
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim11
1 files changed, 1 insertions, 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()\<cr>"
- 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