mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -05:00
Only restore shell if previously saved.
This commit is contained in:
@@ -203,8 +203,10 @@ endfunction
|
|||||||
|
|
||||||
function! gitgutter#utility#restore_shell() abort
|
function! gitgutter#utility#restore_shell() abort
|
||||||
if has('unix')
|
if has('unix')
|
||||||
|
if exists('s:shell')
|
||||||
let &shell = s:shell
|
let &shell = s:shell
|
||||||
let &shellcmdflag = s:shellcmdflag
|
let &shellcmdflag = s:shellcmdflag
|
||||||
let &shellredir = s:shellredir
|
let &shellredir = s:shellredir
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user