mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Fall back to using bourne shell if $SHELL is Elvish (#571)
If vim is launched from the Elvish shell, then fall back to using the
bourne shell (sh) or a bourne compatible shell when calling
{universal/exuberant-}ctags.
Signed-off-by: Adam Jimerson <vendion@gmail.com>
This commit is contained in:
committed by
Caleb Maclennan
parent
a0f51bd5a6
commit
ce30e3f0d1
@@ -2679,6 +2679,12 @@ function! s:ExecuteCtags(ctags_cmd) abort
|
||||
set shell=sh
|
||||
endif
|
||||
|
||||
if &shell =~# 'elvish'
|
||||
" Reset shell since Elvish isn't really compatible
|
||||
let shell_save = &shell
|
||||
set shell=sh
|
||||
endif
|
||||
|
||||
if exists('+shellslash')
|
||||
let shellslash_save = &shellslash
|
||||
set noshellslash
|
||||
|
||||
Reference in New Issue
Block a user