diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2022-10-12 20:07:58 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-10-12 20:07:58 +0900 |
commit | d04faa650562512b97bef2fb32621a532ab5922a (patch) | |
tree | 7c29fc73bccc546adc7f46db731c0f9414baac0c /plugin | |
parent | 07da058eae6f26de4cbe08c48563154e775f6183 (diff) |
[vim] Fix escaping of fzf binary path containing spaces on Windows
Fix #2992
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 2 |
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 |