diff options
Diffstat (limited to 'plugin/fzf.vim')
-rw-r--r-- | plugin/fzf.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 8746af09..28efe690 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -105,6 +105,9 @@ function! s:upgrade(dict) endfunction function! fzf#run(...) abort +try + let oshell = &shell + set shell=sh if has('nvim') && bufexists('[FZF]') echohl WarningMsg echomsg 'FZF is already running!' @@ -149,6 +152,9 @@ function! fzf#run(...) abort finally call s:popd(dict) endtry +finally + let &shell = oshell +endtry endfunction function! s:present(dict, ...) |