From 917b1759b08e1105ce964eff23aae8a304a12eee Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 20 Apr 2015 22:42:02 +0900 Subject: [fzf-tmux/vim] Fixes for fish (#204) --- plugin/fzf.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugin') 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, ...) -- cgit v1.2.3