mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
No need for screenrow()
This commit is contained in:
@@ -108,15 +108,6 @@ function! s:execute(dict, command, temps)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
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)
|
function! s:execute_tmux(dict, command, temps)
|
||||||
if has_key(a:dict, 'dir')
|
if has_key(a:dict, 'dir')
|
||||||
let command = 'cd '.s:escape(a:dict.dir).' && '.a:command
|
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 type(a:dict.tmux) == 1
|
||||||
if a:dict.tmux =~ '%$'
|
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
|
else
|
||||||
let height = str2nr(a:dict.tmux)
|
let height = str2nr(a:dict.tmux)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user