Skip to content
Myr

No need for screenrow()

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

authored by Junegunn Choi · committed by Junegunn Choi · parent a85bb93 · Browse files · 1 file+1 added−10 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−10 removed

  • other:+1 added−10 removed

1 file+1 added−10 removed

modified:plugin/fzf.vim+1 added-10 removed
106 unmodified lines
107 return s:callback(a:dict, a:temps, 0)108 endif109endfunction110111function! s:screenrow()112 try113 execute "normal! :let g:_screenrow = screenrow()\<cr>"114 return g:_screenrow115 finally116 unlet! g:_screenrow117 endtry118endfunction119111function! s:execute_tmux(dict, command, temps)112 if has_key(a:dict, 'dir')113 let command = 'cd '.s:escape(a:dict.dir).' && '.a:command114 else
1 unmodified line
116 endif117118 if type(a:dict.tmux) == 1119 if a:dict.tmux =~ '%$'129 let height = s:screenrow() * str2nr(a:dict.tmux[0:-2]) / 100120 let height = &lines * str2nr(a:dict.tmux[0:-2]) / 100121 else122 let height = str2nr(a:dict.tmux)123 endif124 else
74 unmodified lines