Skip to content
Myr

Fix use of screenrow when tmux height is given in %

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 057eda0 · Browse files · 1 file+10 added−1 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+10 added−1 removed

  • other:+10 added−1 removed

1 file+10 added−1 removed

modified:plugin/fzf.vim+10 added-1 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 endtry118endfunction119120function! s:execute_tmux(dict, command, temps)121 if has_key(a:dict, 'dir')122 let command = 'cd '.s:escape(a:dict.dir).' && '.a:command123 else
1 unmodified line
125 endif126127 if type(a:dict.tmux) == 1128 if a:dict.tmux =~ '%$'120 let height = screenrow() * str2nr(a:dict.tmux[0:-2]) / 100129 let height = s:screenrow() * str2nr(a:dict.tmux[0:-2]) / 100130 else131 let height = str2nr(a:dict.tmux)132 endif133 else
74 unmodified lines