summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin/fzf.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 3c705e91..85d1f2fa 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -96,7 +96,12 @@ function! fzf#shellescape(arg, ...)
if shell =~# 'cmd.exe$'
return s:shellesc_cmd(a:arg)
endif
- return s:fzf_call('shellescape', a:arg)
+ try
+ let [shell, &shell] = [&shell, shell]
+ return s:fzf_call('shellescape', a:arg)
+ finally
+ let [shell, &shell] = [&shell, shell]
+ endtry
endfunction
function! s:fzf_getcwd()