summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-10-12 20:07:58 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-10-12 20:07:58 +0900
commitd04faa650562512b97bef2fb32621a532ab5922a (patch)
tree7c29fc73bccc546adc7f46db731c0f9414baac0c /plugin
parent07da058eae6f26de4cbe08c48563154e775f6183 (diff)
[vim] Fix escaping of fzf binary path containing spaces on Windows
Fix #2992
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
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