From d04faa650562512b97bef2fb32621a532ab5922a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 12 Oct 2022 20:07:58 +0900 Subject: [PATCH] [vim] Fix escaping of fzf binary path containing spaces on Windows Fix #2992 --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 9aae66b3..d1da7b79 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -464,7 +464,7 @@ try let temps = { 'result': s:fzf_tempname() } let optstr = s:evaluate_opts(get(dict, 'options', '')) try - let fzf_exec = fzf#shellescape(fzf#exec()) + let fzf_exec = (&shell =~ 'powershell' ? '&' : '') . shellescape(fzf#exec()) catch throw v:exception endtry