1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Check for fish instead of resetting shell unconditionally

This commit is contained in:
Jan Larres
2015-02-23 15:14:35 +13:00
parent a284cd0091
commit eb392a4502

View File

@@ -3621,8 +3621,8 @@ endfunction
function! s:ExecuteCtags(ctags_cmd) abort
call s:debug('Executing ctags command: ' . a:ctags_cmd)
if has('unix')
" Reset shell in case it is set to something incompatible like fish
if &shell =~# 'fish$'
" Reset shell since fish isn't really compatible
let shell_save = &shell
set shell=sh
endif
@@ -3656,7 +3656,7 @@ function! s:ExecuteCtags(ctags_cmd) abort
let &shellslash = shellslash_save
endif
if has('unix')
if exists('shell_save')
let &shell = shell_save
endif