mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-29 16:23:57 +00:00
[vim] Use cmd.exe directly on GVim (launcher='%s') (#787)
This commit is contained in:
parent
6c0fd7f9ca
commit
3670273719
@ -382,7 +382,7 @@ function! s:xterm_launcher()
|
|||||||
endfunction
|
endfunction
|
||||||
unlet! s:launcher
|
unlet! s:launcher
|
||||||
if has('win32') || has('win64')
|
if has('win32') || has('win64')
|
||||||
let s:launcher = 'cmd.exe /C %s'
|
let s:launcher = '%s'
|
||||||
else
|
else
|
||||||
let s:launcher = function('s:xterm_launcher')
|
let s:launcher = function('s:xterm_launcher')
|
||||||
endif
|
endif
|
||||||
@ -411,8 +411,6 @@ function! s:execute(dict, command, temps) abort
|
|||||||
let fmt = type(Launcher) == 2 ? call(Launcher, []) : Launcher
|
let fmt = type(Launcher) == 2 ? call(Launcher, []) : Launcher
|
||||||
if has('unix')
|
if has('unix')
|
||||||
let escaped = "'".substitute(escaped, "'", "'\"'\"'", 'g')."'"
|
let escaped = "'".substitute(escaped, "'", "'\"'\"'", 'g')."'"
|
||||||
elseif has('win32') || has('win64')
|
|
||||||
let escaped = '"'.(escaped).'"'
|
|
||||||
endif
|
endif
|
||||||
let command = printf(fmt, escaped)
|
let command = printf(fmt, escaped)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user