Skip to content
Myr

[vim] Use cmd.exe directly on GVim (launcher='%s') (#787)

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

authored by Jan Edmund Lazo · committed by Junegunn Choi · parent 6c0fd7f · Browse files · 1 file+1 added−3 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−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:plugin/fzf.vim+1 added-3 removed
380 unmodified lines
381 \ &columns, &lines/2, getwinposx(), getwinposy())382endfunction383unlet! s:launcher384if has('win32') || has('win64')385 let s:launcher = 'cmd.exe /C %s'385 let s:launcher = '%s'386else387 let s:launcher = function('s:xterm_launcher')388endif389
20 unmodified lines
410 let Launcher = get(a:dict, 'launcher', get(g:, 'Fzf_launcher', get(g:, 'fzf_launcher', s:launcher)))411 let fmt = type(Launcher) == 2 ? call(Launcher, []) : Launcher412 if has('unix')413 let escaped = "'".substitute(escaped, "'", "'\"'\"'", 'g')."'"414 elseif has('win32') || has('win64')415 let escaped = '"'.(escaped).'"'414 endif415 let command = printf(fmt, escaped)416 else417 let command = escaped
226 unmodified lines