Skip to content
Myr

[vim] Minor refactoring

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 76d3f6d · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:plugin/fzf.vim+2 added-2 removed
434 unmodified lines
435 call s:pushd(a:dict)436 if has('unix') && !a:use_height437 silent! !clear 2> /dev/null438 endif439 let escaped = escape(substitute(a:command, '\n', '\\n', 'g'), '%#')439 let escaped = escape(substitute(a:command, '\n', '\\n', 'g'), '%#!')440 if has('gui_running')441 let Launcher = get(a:dict, 'launcher', get(g:, 'Fzf_launcher', get(g:, 'fzf_launcher', s:launcher)))442 let fmt = type(Launcher) == 2 ? call(Launcher, []) : Launcher443 if has('unix')
6 unmodified lines
450 if a:use_height451 let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty'452 call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin))453 else454 execute 'silent !'.escape(command, '!')454 execute 'silent !'.command455 endif456 let exit_status = v:shell_error457 redraw!458 return s:exit_handler(exit_status, command) ? s:collect(a:temps) : []
222 unmodified lines